UNC Paths in Windows Command Shell

Problem:

Copy and other command shell commands don’t work with UNC paths, i.e. \\server\dir.

Solution:

Use pushd <path> to temporarily assign a drive letter and map it to the path.

pushd \\server\rootfolder\subfolder

When done, use popd to unmap the letter.

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.