Problema: O prompt de comando ( cmd
) não suporta caminhos UNC como diretórios atuais.
C:\Users\PrimaryUser>cd \myServer\myShare
CMD does not support UNC paths as current directories.
Solução: use pushd
C:\Users\PrimaryUser>pushd \myServer\myShare
Z:\>dir
Volume in drive Z is MYDRIVE
Volume Serial Number is 1234-5678
Directory of Z:\
12/16/2015 11:18 AM <DIR> .
12/16/2015 11:18 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 120,609,575,936 bytes free
Z:\>popd
C:\Users\PrimaryUser>
Solução alternativa: Mapeie o caminho UNC para uma letra de unidade não utilizada.
C:\Users\PrimaryUser>net use Y: \myServer\myShare
The command completed successfully.
C:\Users\PrimaryUser>Y:
Y:\>dir
Volume in drive Y is MYDRIVE
Volume Serial Number is 1234-5678
Directory of Y:\
12/16/2015 11:18 AM <DIR> .
12/16/2015 11:18 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 120,609,575,936 bytes free
Y:\>C:
C:\Users\PrimaryUser>net use /delete Y:
Y: was deleted successfully.