View Full Version : DOS 'CD' utility that accepts UNC?


Rick Charnes
09-28-2006, 03:01 PM
In a Windows networked environment, is there a command-line utility
similar to CD (Change Directory) that supports UNC paths?

Pegasus \(MVP\)
09-28-2006, 03:33 PM
"Rick Charnes" <rickxyz--nospam.zyxcharnes@thehartford.com> wrote in message
news:MPG.1f859fc0c0f7389e989956@msnews.microsoft.com...
> In a Windows networked environment, is there a command-line utility
> similar to CD (Change Directory) that supports UNC paths?

When you say "DOS" I assume you mean the Command Prompt.
DOS is an operating system.

You can do this:

pushd \\SomePC\c$\windows
{Your commands go here}
popd

in order make "Windows" the working directory. However, while
the syntax uses a UNC path, the result will be a temporarily mapped
drive letter.