InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

pushd kann UNC-Pfade verbinden

Betroffene Produkte

  • Windows 2000
  • Windows XP
  • Windows 2003

Zusammenfassung

Dieser Artikel beschreibt die Benutzung des pushd Befehls um effizienter auf UNC Pfade zu wechseln.

Beschreibung

Der cd Befehl kann nicht in Verzeichniss wechseln, die auf Netzwerklaufwerken liegen. Eine Lösung besteht darin, zunächst mit
net use z: \\server\share
z:
cd path
den Netzwerkpfad auf ein lokales Laufwerk zu mappen, und dann auf eben dieses Laufwerk wechseln.
Jedoch muss man hier drei Befehle eintippen, was bei häufiger Nutzung recht aufwändig ist.

Lösung

Der Befehl pushd kann verwendet werden, um die obigen Befehle zusammen zu fassen:
pushd \\server\share\path
Es wird ein Laufwerksmapping durchgeführt, und das aktuelle Verzeichnis wird gewechselt. Ein weiterer Vorteil dieses Befehls liegt darin, das ein
popd
wieder in das Verzeichnis wechselt, das aktiv war, als der pushd Befehl aufgerufen wurde.

Weitere Informationen

Die obigen drei Befehle können in zwei Befehle zusammen gefasst werden. Dies wird hier sehr gut beschrieben.

Tags: , , , ,

Technorati: , , , ,

Posted by Henning Krause on Friday, December 31, 2004 2:29 PM, last modified on Friday, December 31, 2004 2:36 PM
Permalink | Post RSSRSS comment feed

More than two concurrent downloads in Internet Explorer

Affected products

Summary

This article describes how the Internet Explorer can be configured, so that it allows for more than two concurrent downloads.

Description

Normally, the Internet Explore does only two files at a time from one server. The number of paralell downloads can, however, be altered.

Solution

To change the behavior of the Internet Explorer, the following steps are necessary:
  1. Open the registry editor.
  2. Navigate to the key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings.
  3. Create a new value of type DWord called MaxConnectionsPerServer.
  4. Create a new value of type DWord called MaxConnectionsPer1_0Server.
  5. Open the values and enter the maximum number of concurrent downloads.
  6. After the Internet Explorer has been restarted, the new setting becomes active.

Status

This behavior is by design.

Posted by Henning Krause on Friday, December 31, 2004 2:20 PM, last modified on Saturday, November 27, 2010 5:42 AM
Permalink | Post RSSRSS comment feed

Regain access to blocked atachments in Outlook XP

Affected products

  • Microsoft Outlook XP
  • Microsoft Outlook 2003

Summary

This article describes how Outlook XP can be configured, so that it no longer blocks access to attachments certain file types such as .exe.

Description

Since Outlook 200 SP 2, outlook blocks access to attachment of certain file type such as executables or scripts.
There are two types of blocks: The level one files are completely blocked, so that no access is possible, albeit they are not deleted by Outlook. The level 2 files are blocked in that way, that the user can not open them directly. They must be saved to disk before an access is possible.
Outlook XP can now be configured so that level one filetypes can be transformed to level two files..

SOLUTION

To change the behavior of Outlook, the following steps are necessary:
  1. Open the registry editor.
  2. If you are using Outlook XP, navigate to the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\10.0\Outlook\Security.Under Outlook 2003, navigate to the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\11.0\Outlook\Security.
  3. Create a new value of type String named Level1Remove.
  4. Open the value and enter a semicolon separated list. For example:
    .exe;.ppt;.url;
    After Outlook has been restarted, the access to the attachments is no longer blocked.

Status

This behavior is by design.

Posted by Henning Krause on Friday, December 31, 2004 2:09 PM, last modified on Friday, December 31, 2004 2:27 PM
Permalink | Post RSSRSS comment feed

Render HTML emails as plain text in Outlook

Affected products

Summary

This article describes the products listed in the beginning of this article can be configured so that they render HTML emails as plain text.

Description

HTML email are simply complete web pages that are sent by mail. These mails can contain images (so called web bugs) that can be used to track who reads the sent mail. This way, spammer can verify if your email account is an active one, so they can send you more unsolicited mails. On the other hand, HTML emails can contain embedded script code that may be harmful to your computer.
The affected programmed can now be configured so that they render HTML emails as plain text.

Solution

  1. To change the behavior of Outlook, the following steps are necessary:
  2. Open the registry editor.
  3. If you are using Outlook XP, navigate to the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\10.0\Outlook\Options\Mail.
  4. Create a new value of type DWord called ReadAsPlain.
  5. Set the value to 1.
  6. After Outlook has been restarted, all HTML emails are now rendered as plain text.

Status

This behavior is by design.

Posted by Henning Krause on Friday, December 31, 2004 2:03 PM, last modified on Monday, November 29, 2010 9:31 PM
Permalink | Post RSSRSS comment feed

Display disconnected devices in the Device Manager

Affected products

  • Windows 2000
  • Windows XP
  • Windows 2003

SUMMARY

This article explains, how to enable the visibility of disconnected devices in the Device Manager.

DESCRIPTION

The Device Manager normally only show connected devices, and even if the option "Show hidden devices" is checked, not all installed hardware is listed within the tree.
This is a major drawback in cases when you want to uninstall several devices (e.g. modems or other plug-and-play devices) when they are not currently connected to the computer. Normally you would start the "Add/Remove Hardware" wizard for each device you want to unintall. However, there is a smarter solution to do this, as explained below.

SOLUTION

To show all installed devices, follow these steps:
  1. Open a command prompt
  2. Enter the following:
    SET DEVMGR_SHOW_NONPRESENT_DEVICES=1
    cd %systemroot%\system32
    start compmgmt.msc
  3. Select the Device Manager node and turn on the "Show Hidden Devices" feature by clicking the appropiate entry in the View menu.
    The Device Manager will now list all devices that are installed on the machine.

Posted by Henning Krause on Friday, December 31, 2004 1:32 PM, last modified on Monday, November 29, 2010 8:09 PM
Permalink | Post RSSRSS comment feed

Processes within VMWare suddenly disappear

Affected products

Summary

Some programs do not start, or even fail to install within the guest operating system.

Symptoms

The programs or their corresponding installation program do not start, and the process of the program suddenly disappears.
Below is the list of programs, that are known to fail within VMWare 4.0:
Adobe Acrobat 5: The program can't be started.
Oracle 8i: The universal installer program does not start.

Solution

The various programs require different actions to be taken:
  • Adobe Acrobat 5.0: Update to version 5.05. This version can be downloaded from http://adobe.com.
  • Oracle 8i: A patch is available to fix this problem. For more information search for "oracle" in the VMWare knowledgebase on http://www.vmware.com/support

Posted by Henning Krause on Friday, December 31, 2004 1:29 PM, last modified on Friday, December 31, 2004 1:32 PM
Permalink | Post RSSRSS comment feed

Change the MAC address of a network adapter

Affected products

  • Microsoft Windows 2000
  • Microsoft Windows 2003
  • Microsoft Windows XP

Summary

This articles explains how to change the MAC address of a network adapter.

More information

The MAC address uniquely identifies the network card within the current network segment. It consists of a vendor id that is unique among all network vendors, and a relative id that is unique to the vendor.
The address is hard-coded onto the network adapter. But since most of the drivers were deleveloped with the Windows Driver Development kit, the MAC adress is read from the Windows registry, when the card is initialized.

Steps

  1. Note the description and current MAC address of the card you want to modify. To do this, open a command prompt and type the following:
    ipconfig /all
  2. The description of the card is in the field "Description", whereas the MAC address can be found at the field "Physical address".
  3. Start the registry editor (regedt32 under Windows 2000, regedit under Windows XP and Windows 2003) and open the node
    HKEY_LOCAL_MASHINE\System\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}.
    When you expand this node, you will find several subnodes, each representing one of your network adapters.
  4. Find the node which contains the field "Description" in the right pane that matches the description of the network adapter you want to change.
  5. On the node with the network adapter to change, check whether there is an entry named "NetworkAddress" (without the quotation marks, of course). If there is such an entry, check if the entry type is "REG_SZ". If not, delete the entry and recreate it with the appropriate type. If the entry does not yet exist, create one.
  6. Double click the entry "NetworkAddress" and enter the new network address. Note that the new network address should have exactly twelve digits.
  7. Once you entered the new network address, the network adapter has to be restarted. To do this, open the control panel and then "Network and Dialup connections". Right click the network connection you have just modified, and then click disable. After the device has been disabled, right-click the connection again and click Enable.
  8. Open a command prompt, and type
    ipconfig /all
    to check, whether the new MAC address has been changed.
    If the displayed physical address is still the same, your network card is probably incapable of changing this setting.

Posted by Henning Krause on Friday, December 31, 2004 1:14 PM, last modified on Monday, November 22, 2010 10:43 AM
Permalink | Post RSSRSS comment feed

Mount a CD/DVD image via context menu in the Explorer using Daemon-Tools

More Information

The daemon tools are by default set up to start a small program that is accessed via the system tray, near the clock. With a right-click on the program icon, one can easily mount and unmount images, or change the number of virtual drives on the fly.

However, one often comes accross an image with an explorer window. To mount such an icon, the user must do the following:

  1. Right-click on the daemon-tools tray icon

  2. Navigate to the virtual drive, where the image should be mounted

  3. Choose Mount image.

  4. In the Open file dialog, navigate to the folder

  5. Click Ok.

Luckily, the daemon tools have a rich set of command line parameters, so most of the above steps can be eliminated.

     

Solution

To allow the mounting of images via the context menu, the image files must be associated with the daemon tools. To do this apply the following registry information to your computer:

    1 Windows Registry Editor Version 5.00

    2 [HKEY_CLASSES_ROOT\DaemonTools.File]

    3 @="CD/DVD Image"

    4 [HKEY_CLASSES_ROOT\DaemonTools.File\shell]

    5 @="open"

    6 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1]

    7 @="Mount Image on Second Virtual Drive"

    8 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1\command]

    9 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 1,\"%l\""

   10 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open]

   11 @="Mount Image on First Virtual Drive"

   12 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open\command]

   13 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 0,\"%l\""

   14 [HKEY_CLASSES_ROOT\.iso]

   15 @="DaemonTools.File"

   16 [HKEY_CLASSES_ROOT\.nrg]

   17 @="DaemonTools.File"

   18 [HKEY_CLASSES_ROOT\.bin]

   19 @="DaemonTools.File"

   20 [HKEY_CLASSES_ROOT\.cue]

   21 @="DaemonTools.File"

   22 [HKEY_CLASSES_ROOT\.bwt]

   23 @="DaemonTools.File"

   24 [HKEY_CLASSES_ROOT\.cdi]

   25 @="DaemonTools.File"

   26 [HKEY_CLASSES_ROOT\.ccd]

   27 @="DaemonTools.File"

   28 [HKEY_CLASSES_ROOT\.mds]

   29 @="DaemonTools.File"

   30 [HKEY_CLASSES_ROOT\.pdi]

   31 @="DaemonTools.File"

The above registry file is designed for two virtual drives. If you have more or less drives, you'll have to modify this area of the file:

    1 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1]

    2 @="Mount Image on Second Virtual Drive"

    3 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1\command]

    4 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 1,\"%l\""

    5 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open]

    6 @="Mount Image on First Virtual Drive"

    7 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open\command]

    8 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 0,\"%l\""

    9 For a third drive, simply add the following lines:

   10 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount2]

   11 @="Mount Image on Third Virtual Drive"

   12 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount2\command]

   13 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 2,\"%l\""

 

Note that you must replace the path to the Daemon tools folder.

Downloads

daemontools_2drives_english.zip (548 Bytes)
A registry file preconfigured for 2 drives, for an english version of Windows.
daemontools_2drives_german.zip (541 Bytes)
A registry file preconfigured for 2 drives, for a german version of Windows.

Technorati:

Posted by Henning Krause on Friday, December 31, 2004 12:00 AM, last modified on Sunday, November 28, 2010 5:12 PM
Permalink | Post RSSRSS comment feed