[英]Subst drive & folder
Can I use windows command subst
to map a drive & folder to another location?我可以使用 windows 命令
subst
将驱动器和文件夹映射到另一个位置吗?
I want to map say the temp folder我想映射说临时文件夹
c:\\foo\\bar\\temp
to到
e:\\buildserver\\dev
I can easily map the temp
directory to e:
using我可以轻松地将
temp
目录映射到e:
使用
subst e: c:\\foo\\bar\\temp
But how can I also add the path folding the drive \\buildserver\\dev
但是我怎样才能添加折叠驱动器
\\buildserver\\dev
的路径
您可以像这样创建目录连接:
mklink /J c:\foo\bar\temp\ e:\buildserver\dev\
On Windows 10 and Windows 7, instead of subst e: c:\\foo\\bar\\temp在 Windows 10 和 Windows 7 上,代替 subst e:c:\\foo\\bar\\temp
NET USE E: "c:\\foo\\bar\\temp"网络使用 E: "c:\\foo\\bar\\temp"
This sticks across a reboot.这坚持重新启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.