Wednesday, February 20, 2008

Substituting Drive Letters

You can use the DOS SUBST command in the AUTOEXEC.BAT file to set a drive letter to a local or networked drive and directory.

This way you only need to go to a new drive letter rather than needing to go several levels deep into a directory structure.
For example:

SET SYST=D:\SYST
SET UTIL=%SYST%\UTIL

SUBST G: %DATADIR%\GRAPHICS
SUBST H: %DATADIR%\HTML
SUBST I: %DATADIR%\HTML\intrepid
SUBST M: %DATADIR%\MIDI
SUBST T: %TEMP%
SUBST U: %UTIL%
SUBST W: %DATADIR%\HTML\smulder
SUBST Z: %DATADIR%\DL

No comments: