如何把文件夹影射为磁盘

有时你经常需要访问一个很深的文件夹目录,像C:\Users\Public\Documents\shared\Clients\pitt\Project\
如果把它影射到 G:\? 是不是方便多了呢?
影射一个网络磁盘可以利用Map Network Drive.对于本地文件夹可以用命令和软件来实现。
(1)命令要用到“subst”
可以通过subst /? 命令来查看使用方法,显示如下:

C:\>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.

C:\>

(2)借助Visual Subst软件

Visual Subst

visualsubst.png

odi et amo :

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*

Type your comment out: