subst [virtual drive symbol] [link directory]
In it :
+ [virtual drive symbol] is the symbol of the virtual drive mapped by you, but remember to avoid being identical to the drive letter already in the machine.
+ [link directory path] is the path to the physical directory on the machine, this folder will be mapped to [virtual drive symbol].
+ For example, you have a folder called software located in d: minhtrisofware and you want to create a virtual drive named W: to quickly link to the software folder, the command will look like this:
subst z: d: luutrudownloadsoftware
- When you no longer want to use this virtual drive, you can delete (disable) this virtual drive with the command subst z: / W or subst z: / D
- Note : [linked directory path] must be named after each other so there should be no spaces because the command will think the word after that space is a parameter, if the folder name wants to link (or a the part in the path) has spaces, you must include them all in quotation marks "". Finally wish you success with your exciting virtual drives.
Tran Dai Minh Tri