Windows Server,  Windows XP

Windows: Using SUBST to Map a Drive Letter to a Folder

So you’re using some old app, like FoxPro and it points to a drive letter.  You only have one disk but need to spoof or mimic that drive letter.  Well, subst to the rescue.  Basically, pick a letter.  Let’s say S: as it’s not currently in use.  Then use the subst command followed by the letter followed by the path to map a drive letter to it.  For example, if you want tot mount up c:/sales as S: then use this command:

subst s: c:/sales

Now, don’t misuse this command as a replacement for, let’s say net use.  If it’s a network path still map it using the net use command…