JSI Tip 6226. 'CMD does not support UNC paths as current directories'?

Jerold Schulman

January 15, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you use the CD command to change the current folder to a UNC path, you receive:

CMD does not support UNC paths as current directories.

Instead of mapping a drive, you can use the following:

pushd \ComputerNameShareName
REM Current folder is now the UNC path. Place additional commands here.
popd
REM Current folder is as it was prior to the pushd command.

NOTE: See Windows 2000 command help.

NOTE: See Windows XP command help.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like