当前位置:网站首页>[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 .
边栏推荐
- How to add data to the back-end database in the form of Excel file on the web page
- Index +sql exercise optimization
- MSSQL how to export and delete multi table data using statements
- C how to call line and rows when updating the database
- JDBC operation MySQL example
- ACM course term summary
- Stream常用操作以及原理探索
- No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube
- Cookie encryption 7 fidder analysis phase
- 2022爱分析· IT运维厂商全景报告
猜你喜欢
Blind survey shows that female code farmers are better than male code farmers
野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
JS uses the while cycle to calculate how many years it will take to grow from 1000 yuan to 5000 yuan if the interest rate for many years of investment is 5%
C how to call line and rows when updating the database
Mapping of Taobao virtual product store opening tutorial
盲测调查显示女码农比男码农更优秀
js输出1-100之间所有的质数并求总个数
Import and export database related tables from the win command line
Implementation of game hexagon map
js求所有水仙花数
随机推荐
Speech synthesis: tacotron explains [end-to-end speech synthesis model] [compared with traditional speech synthesis, it does not have complex phonetics and acoustic feature modules, but only uses < te
Common operation and Principle Exploration of stream
Install Jenkins
Mobile security tools -jad
js中输入三个值,并且由小到大输出
【c ++ primer 笔记】第4章 表达式
Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率
JS output shape
【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
【批处理DOS-CMD命令-汇总和小结】-cmd的内部命令和外部命令怎么区分,CMD命令和运行(win+r)命令的区别,
js中判断成绩是否合格,范围在0-100,否则重新输入
"Short video" Linxia fire rescue detachment carries out fire safety training
Is futures reverse documentary reliable?
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
C how to call line and rows when updating the database
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.
【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst
No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube
2、项目使用的QT组件
第6届蓝桥杯