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

Leave a Reply

Your email address will not be published. Required fields are marked *

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