windows - pushd \\network\path returns CMD does not support UNC paths as current directories -


i using batch file access files network.

i using

pushd \\network\path  

to navigate networked directory initiate scripts

my bat file working fine till morning saw "cmd returning cmd not support unc paths current directories".

i have seen error message when using cd instead of pushd navigate network directory can figure out why getting error working bat file.

and did make sure network location online , accessible other way round.

from pushd /?:

if command extensions enabled pushd command accepts network paths in addition normal drive letter , path. if network path specified, pushd create temporary drive letter points specified network resource , change current drive , directory.

do mapped drives show in net use after pushd executed?

if you're not getting kind of network authorization error, make sure command extensions enabled (i'm not sure why wouldn't be.)

cmd /x enable extensions current cmd session. try prior executing batch script.

the "main switch" in hkey_current_user\software\microsoft\command processor. enableextensions should (dword) 1


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -