The Linux Page

Substitute a drive letter for a path

If you are using a folder much, then you can create a substitute using the subst command in a shell. This command will assign a path to the given letter and the result is something which looks like you had an additional hard drive.

Opening that virtual hard drive gets you straight into the folder you selected. The syntax is simply: subst <letter> <path> to add a virtual drive and: subst <letter> /d to remove a previously defined virtual drive. Note that using subst by itself lists the currently existing drives.