博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
映射本地文件夹到驱动器_在Windows中轻松地将驱动器号映射到文件夹
阅读量:2517 次
发布时间:2019-05-11

本文共 3419 字,大约阅读时间需要 11 分钟。

映射本地文件夹到驱动器

映射本地文件夹到驱动器

Have you ever needed to repeatedly access a folder that is nested deep inside a giant hierarchy of folders? Sure, you can always create a shortcut to that folder, but did you know you can actually assign a drive letter to a folder instead? Today we’ll show you how to do this.

您是否曾经需要重复访问嵌套在巨大的文件夹层次结构中的文件夹? 当然,您始终可以为该文件夹创建快捷方式,但是您知道实际上可以为该文件夹分配驱动器号吗? 今天,我们将向您展示如何执行此操作。

This ability has existed in Windows via the subst command for quite a while, so this will also work for you XP users as well.

通过subst命令,该功能已经在Windows中存在了很长一段时间,因此,这也将对您的XP用户有效。

Map a Drive Letter the Easy Way

轻松映射驱动器号

The easiest way to assign a drive letter to a folder is to use a simple utility called Visual Subst, which gives you a nice graphical interface to assign drive letters, but also does something that the command line version can’t… you can set your virtual drives to apply again at startup.

将驱动器号分配给文件夹的最简单方法是使用一个名为Visual Subst的简单实用程序,该实用程序为您提供了一个漂亮的图形界面来分配驱动器号,但同时也执行了命令行版本无法执行的操作……您可以设置虚拟驱动器在启动时再次应用。

You can download and run the utility without needing to install it, and then simply use the Browse button to select your path, and click the green plus symbol after choosing the drive letter.

您可以下载并运行该实用程序而无需安装它,然后只需使用“浏览”按钮选择路径,然后在选择驱动器号后单击绿色加号即可。

image

At this point you should see the drive letter show up in the list. (Note that you can delete it by highlighting and choosing the red X icon, or change the path / letter by using the Save button.

此时,您应该看到驱动器号出现在列表中。 (请注意,您可以通过突出显示并选择红色的X图标将其删除,或者使用“保存”按钮更改路径/字母。

image

If you want to save the drives, you’ll want to select the “Apply virtual drives on Windows startup” option.

如果要保存驱动器,则需要选择“在Windows启动时应用虚拟驱动器”选项。

Now when you open up your Computer window, you should see the new drive show up in the list.

现在,当您打开“计算机”窗口时,您应该会在列表中看到新的驱动器。

image

The contents of the new M: drive will actually be the contents of my desktop folder.

新的M:驱动器的内容实际上将是我的桌面文件夹的内容。

Assign Drive Letters from the Command Prompt

从命令提示符分配驱动器号

If you are more the keyboard ninja type, or just want to know how to use the command line version, you can use the subst command to map drive letters the same way by using the following syntax:

如果您更喜欢键盘忍者类型,或者只是想知道如何使用命令行版本,则可以使用以下语法,使用subst命令以相同的方式映射驱动器号:

subst <driveletter> <folder path>

替代<驱动器字母> <文件夹路径>

For example, to map the M: drive to my desktop folder I would use the following command:

例如,要将M:驱动器映射到我的桌面文件夹,我将使用以下命令:

subst M: c:\users\geek\desktop

替代M:c:\ users \ geek \ desktop

If you just want to see which drive letters are assigned, you can use subst without any arguments, as shown here:

如果只想查看分配了哪些驱动器号,则可以使用不带任何参数的subst,如下所示:

image

To delete a drive letter you can use the /D switch instead of a path… for instance, to delete the M: drive that I just created, I would use the following syntax:

要删除驱动器号,可以使用/ D开关而不是路径…例如,要删除我刚刚创建的M:驱动器,我将使用以下语法:

subst M: /D

替代M:/ D

Now when you use the subst command to see the current drives, you’ll see nothing in the list.

现在,当您使用subst命令查看当前驱动器时,您将在列表中看不到任何内容。

image

I’ve found the subst command to be very useful, not just in shortening folder paths but also in one instance where I wanted to delete my second partition… I just reassigned the D: drive letter to point to C: and copied all the data over. That way the application shortcuts still worked without having to reinstall the application.

我发现subst命令非常有用,不仅在缩短文件夹路径上,而且在一个我想删除第二个分区的实例中……我只是重新分配了D:驱动器号以指向C:并复制了所有数据过度。 这样,应用程序快捷方式仍然有效,而无需重新安装应用程序。

翻译自:

映射本地文件夹到驱动器

转载地址:http://dgcwd.baihongyu.com/

你可能感兴趣的文章
Java魔法堂:找外援的利器——Runtime.exec详解
查看>>
mysql数据库存放路径
查看>>
TestNG(五)常用元素的操作
查看>>
解决 Visual Studio 点击添加引用无反应的问题
查看>>
通过镜像下载Android系统源码
查看>>
python字符串格式化 %操作符 {}操作符---总结
查看>>
windows 不能在 本地计算机 启动 Apache
查看>>
iOS开发报duplicate symbols for architecture x86_64错误的问题
查看>>
Chap-6 6.4.2 堆和栈
查看>>
【Java学习笔记之九】java二维数组及其多维数组的内存应用拓展延伸
查看>>
C# MySql 连接
查看>>
sk_buff Structure
查看>>
oracle的级联更新、删除
查看>>
多浏览器开发需要注意的问题之一
查看>>
Maven配置
查看>>
HttpServletRequest /HttpServletResponse
查看>>
SAM4E单片机之旅——24、使用DSP库求向量数量积
查看>>
从远程库克隆库
查看>>
codeforces Unusual Product
查看>>
hdu4348 - To the moon 可持久化线段树 区间修改 离线处理
查看>>