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

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 \\ComputerName\ShareName
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.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish