Sometimes you need to mount a specific folder as a drive. subst and net (for connecting a network drive) will help us with this
subst lets you mount any folder as a separate drive with an assigned letter. Naturally, the contents of this drive will be the contents of the folder you specified as the source.
Syntax:
subst q: e:\downloads
mounts the downloads folder on logical drive E: as virtual drive Q:
subst q: /delete
deletes virtual drive Q:
net use q: \\server\shared
mounts the shared folder from computer SERVER as network drive Q:
net use q: /delete
deletes network drive Q:
Comments