当前位置:网站首页>[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 .
边栏推荐
- What is a flotation machine?
- JS output all prime numbers between 1-100 and calculate the total number
- Speech signal processing - concept (II): amplitude spectrum (STFT spectrum), Mel spectrum [the deep learning of speech mainly uses amplitude spectrum and Mel spectrum] [extracted with librosa or torch
- 基础知识 | js基础
- 二叉树结构以及堆结构基础
- 盲测调查显示女码农比男码农更优秀
- ACM course term summary
- 闭包问题
- js成绩奖惩例题
- Error in idea connection database
猜你喜欢
随机推荐
野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
2. QT components used in the project
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.
什么是浮选机?
游戏六边形地图的实现
05 观察者(Observer)模式
JS example print the number and sum of multiples of all 7 between 1-100
js输出1-100之间所有的质数并求总个数
若xn>0,且x(n+1)/xn>1-1/n(n=1,2,...),证明级数∑xn发散
[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment
(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘
【论文阅读】Intrinsically semi-supervised methods
05 observer mode
The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
Install Jenkins
Mysql-8 download, installation and configuration tutorial under Windows
PostgreSQL encounters permission denied in Windows system
File 与 MultipartFile概述
移动安全工具-jad
【13. 二进制中1的个数、位运算】








