Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: CHDIR IN XP USING UNC  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

Earl of Thaxton

  • Guest
CHDIR IN XP USING UNC
« on: February 27, 2008, 10:45:58 AM »
I am trying to use UNC to do a chdir.  When using xp, I get message saying "CMD does not support UNC paths as current directory" 

Does anyone know a way around this problem.  By the way, it only happens in XP.  2000, or vista, 98 works fine


Dias de verano

  • Guest
Re: CHDIR IN XP USING UNC
« Reply #1 on: February 27, 2008, 11:00:10 AM »
This seems to be saying you need the cmd.exe from an NT 4.0 Service Pack and also add a registry entry:

Under the registry path:

   HKEY_CURRENT_USER
      \Software
         \Microsoft
            \Command Processor

add the value DisableUNCCheck REG_DWORD and set the value to 0 x 1 (Hex).

http://support.microsoft.com/kb/156276/en-us

This just seems to suggest adding the registry entry:

http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9890

Or use Powershell which does support a UNC path for the current directory

« Last Edit: February 27, 2008, 11:15:13 AM by Dias de verano »