11 June, 2009
0 Comments
0 categories
When you enter cd “\\myserver\myshare” in het cmd.exe dialog, you get the error CMD does not support UNC paths as current directories. But what if you want to run a bat file from a networkshare and use that share as the current directory, you can use cmd.exe but you will have to use pushd and when done use popd, this will automatically mount a drive to the given network share, so you can use the network share as current directory:
C:\pushd \\myserver\myshare
C:\popd
Tags: Windows 7