当前位置:网站首页>[batch dos-cmd command - summary and summary] - map folder to virtual disk - subst
[batch dos-cmd command - summary and summary] - map folder to virtual disk - subst
2022-06-27 07:51:00 【dssgresadfsrgre】
One 、subst The meaning of command
Sometimes files ( clip ) Our directory is very deep , You need to switch directories every time you open it , With mirrored virtual disks subst command , Temporarily map folders to disks for display on my computer , It will make the work easier , Can save a lot of time .

in addition , Map a folder with a blank path to a virtual disk , Avoid spaces that cause CMD Command execution error .
Bypass paths with spaces : Go around , Create a mirror image . For example, in cmd Input in subst w: "C:\Documents and Settings\hopeshared". Then you can use it directly w:\ replace C:\Documents and Settings\hopeshared 了
Two 、 Print subst Command help information ——subst /?
C:\Users\Administrator>subst /?
Associate a path with a drive letter .
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: Specify the virtual drive to assign the path to .
[drive2:]path Specify the physical drive and the path to assign to the virtual drive .
/D Delete the replaced
( fictitious ) Driver .
Type without parameters SUBST, To display a list of current virtual drives .
C:\Users\Administrator>3、 ... and 、 New disk mapping ——subst drive1 drive2:path
Carry out orders 【subst a: E:\ Thunder download 】, Try to E The thunderbolt download folder in the disk is mapped to A disc .


Mapping success

Four 、 Check the disk mapping —— Execute the command without parameters subst
After creating the mapping in Chapter 3 , Execute command now 【subst】, You can see that there are two mappings .

5、 ... and 、 Delete the specified disk mapping ——subst drive: /d
Then go on to chapter four , Carry out orders 【subst W: /D】, Add the previously created virtual disk w Delete .

6、 ... and 、 Restart automatic execution and configuration ——bat Self starting item
because subst The virtual disk generated by the command is temporary , It will disappear after the next restart , If you want the mapping to last , And you don't want to manually... Frequently 、 Be careful to create , So you can create a bat Script , Set this script to boot and execute .
There are many specific methods , For details, please refer to the article I have summarized .
边栏推荐
- c的时间函数算效率
- Testing network connectivity with the blackbox exporter
- js打印99乘法表
- 1-4 进制表示与转换
- PostgreSQL encounters permission denied in Windows system
- Binary tree structure and heap structure foundation
- js中判断成绩是否合格,范围在0-100,否则重新输入
- Implementation principle of similarity method in Oracle
- The 6th Blue Bridge Cup
- 2. QT components used in the project
猜你喜欢

PayPal account has been massively frozen! How can cross-border sellers help themselves?

洛谷刷题心得记录

JS to print prime numbers between 1-100 and calculate the total number of optimized versions

JS to determine whether the result is qualified, the range is 0-100, otherwise re-enter

Win10 how to manage startup items?
![[compilation principles] review outline of compilation principles of Shandong University](/img/a6/b522a728ff21085411e7452f95872a.png)
[compilation principles] review outline of compilation principles of Shandong University

What is a magnetic separator?

JS find the number of all daffodils

Stream常用操作以及原理探索

js判断用户输入的数是否为质数(多种方法)
随机推荐
Etcd tutorial - Chapter 5 etcd etcdctl usage
Implementation principle of similarity method in Oracle
基础知识 | js基础
Coal crusher
Cookie encryption 7 fidder analysis phase
win命令行中导入、导出数据库相关表
Cookie加密6
RNA SEQ data analysis in R - investigate differentially expressed genes in the data!
[paper reading] internally semi supervised methods
磁选机是什么?
R language calculates Spearman correlation coefficient in parallel to speed up the construction of co occurrence network
js输出形状
Custom palette for ggplot2
JS use the switch statement to output the corresponding English day of the week according to 1-7
Install Jenkins
JS find the number of all daffodils
【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst
What are the specialties of database system engineers?
2022 love analysis · panoramic report of it operation and maintenance manufacturers
JDBC parameterized query example