Explorer UNC from CMD

October 13, 2014

tags: , , ,
no comments

How to explorer UNC folders from command line.

 

If you try to explorer UNC from cmd, you will get error :

“CMD does not support UNC paths as current directories.”

UNC1

 

so, how can I explorer ??

Simple, using PUSHD command.

c:\>pushd “\\SERVER\Shares\Information Technology”

Pushd

PUSHD will create a temporary drive letter that points to that specified network resource and then change the current drive and directory, using the newly defined drive letter. 

Temporary drive letters are allocated from Z: on down, using the first unused drive letter found.

Pushd2

.

How to  delete temporary drive letter  ?

simple – run popd.exe command.

POPD Will delete any temporary drive letter created by PUSHD.

 

 

 

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.