subst可以把某个路径映射到一个盘符上,就是把路径当作一个逻辑磁盘处理。
Associates a path with a drive letter.
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.
例如:把f:/abc/myown 映射成x盘
subst x: f:/abc/myown
取消这个映射就是
subst x: /D
当机器重启后,subst效果丢失。