JSI Tip 9890. You receive: ' ' is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory.
November 10, 2005
When you open a CMD.EXE window with a UNC (Universal Naming Convention) path, you receive:
'' is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory.
To support UNC paths, use either of the following:
In a logon script:
REG ADD "HKCUSoftwareMicrosoftCommand Processor" /V DisableUNCCheck /T REG_DWORD /F /D 1
NOTE: REG.EXE is built into Windows XP and Windows Server 2003. It is installed on Windows 2000 from the Support Tools folder on the Windows 2000 CD-ROM.
In a logon script:
regedit /s %LOGONSERVER%NETLOGONDisUNCCK.reg
Where each DisUNCCK.reg file contains:
REGEDIT4
[HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor]
"DisableUNCCheck"=dword:00000001
Use PolicyMaker™ Registry Extension freeware to set the DisableUNCCheck Value Name, a REG_DWORD data type, to a data value of 1 at HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor.
About the Author
You May Also Like