当前位置:网站首页>[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 .
边栏推荐
- File and multipartfile overview
- JS example print the number and sum of multiples of all 7 between 1-100
- Multi table associated query -- 07 -- hash join
- 盲测调查显示女码农比男码农更优秀
- 【c ++ primer 笔记】第4章 表达式
- 参考 | Win11 开启热点之后电脑不能上网
- The 6th Blue Bridge Cup
- Blind survey shows that female code farmers are better than male code farmers
- 【11. 二维差分】
- Recognize the ordering of O (nlogn)
猜你喜欢

Binary tree structure and heap structure foundation

No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube

(note) Anaconda navigator flashback solution

L'enquête en aveugle a montré que les femmes étaient meilleures que les hommes.

【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst

JS output all prime numbers between 1-100 and calculate the total number

野风药业IPO被终止:曾拟募资5.4亿 实控人俞蘠曾进行P2P投资

cookie加密7 fidder分析阶段

「短视频」临夏消防救援支队开展消防安全培训授课

【13. 二进制中1的个数、位运算】
随机推荐
2、项目使用的QT组件
Recognize the ordering of O (nlogn)
What are the specialties of database system engineers?
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.
Helix QAC is updated to 2022.1 and will continue to provide high standard compliance coverage
Import and export database related tables from the win command line
What is futures reverse documentary?
Win10 how to manage startup items?
js中如何查看程序运行时间(计时器)
Implementation of game hexagon map
How to bind SQL statements to web buttons
The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
1-4 decimal representation and conversion
【c ++ primer 笔记】第3章 字符串、向量和数组
[paper reading] internally semi supervised methods
JDBC transaction commit case
js中判断奇偶的函数,求圆面积的函数
js用while循环计算假如投资多年的利率为5%,试求从1000块增长到5000块,需要花费多少年
无论LCD和OLED显示技术有多好,都无法替代这个古老的显示数码管