The Linux Page

Substitute a drive letter for a path

If you are using a drive much, then you can create a substitute using the subst command in a shell. This command will assign a path to the given letter drive and the result is something which looks like you had a mounted hard drive (if you are used to the Unix way).

Opening that virtual path gets you straight into the hard drive you selected.

The syntax is simply:

1. add a virtual drive

subst <letter> <path>

2. remove a previously defined virtual drive

subst <letter> /d

3. use the command by itself to list the currently existing virtual drives

subst