https://superuser.com/questions/282963/browse-an-unc-path-using-windows-cmd-without-mapping-it-to-a-network-drive
问题:
C:\> cd \\somewhere
'\\somewhere'
CMD does not support UNC paths as current directories.
处理方式:
增加nass为本地磁盘处理的
net use x: \\computer name\share name
[popexizhi:
当前的问题,原文推荐的,自己的有nass有user和password , 没有测试通过,这个pushd的使用待进一步研究
pushd
will create a temporary virtual drive and get into it.popd
will delete the temporary drive and get you back to the path you were when you entered pushd
.
Example:
C:\a\local\path> pushd \\network_host\a\network\path
U:\a\network\path> REM a temporary U: virtual drive has been created
U:\a\network\path> popd
C:\a\local\path> REM the U: drive has been deleted
C:\a\local\path>
]
没有评论:
发表评论