How to use UNC paths inside Windows Command prompt?

If you are reading this article which means you want to open a UNC path from the command prompt. Yes I also wanted to play with some UNC paths just before write this article.

I thought it will be good if I share that knowledge with you.

It’s easy just use “pushd” without quotes in front of the UNC path you want to use. This little command will assign your location as a temporary network location and will treat the location as a drive. To remove the network drive assignment you need to place “popd” at the end of the script.

pushd \\Server\my_share

        #Rest
        #of
        #the
        #script

popd

Hope this helped.

Recent Posts

2017 Honda Pilot Specs, Features, Release Date and Price

2017 Honda Pilot Specs, Features, Release Date and PriceThe Honda Pilot is one of the… Read More

1 month ago

2017 Jeep Wrangler Unlimited Specs, Features, Price, and Release Date

2017 Jeep Wrangler Unlimited Specs, Features, Price, and Release DateThe Jeep Wrangler has actually become… Read More

1 month ago

2017 Ford Mustang Specs, Features, Price, and Release Date

2017 Ford Mustang Specs, Features, Price, and Release DateThe Ford Mustang has been called the… Read More

1 month ago

Complete Specification of 2017 Lexus CT200h F Sport

Complete Specification of 2017 Lexus CT200h F Sport2017 Lexus CT200h F Sport Review – Sport cars… Read More

1 month ago

GMC Acadia Wiki Specifications You Should Know

Planning to have a new high-end car? Why don't considering the GMC Acadia to accompany… Read More

1 month ago

2017 Acura RLX Review – Exterior, Interior, Engine, Price and Release Date

2017 Acura RLX Review – Exterior, Interior, Engine, Price and Release DateThe Acura RLX has… Read More

1 month ago