home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
tsbat46.zip
/
SUBS.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-24
|
855b
|
29 lines
@echo off
echo ┌───────────────────────────────────────────────────┐
echo │ Make the current directory a substituted drive │
echo │ By Prof. Timo Salmi, ts@uwasa.fi, Sun 24-Jan-1993 │
echo └───────────────────────────────────────────────────┘
echo.
rem Customize if you wish to designate something else than drive Q:
set drive_=Q:
rem Remove the potential old substitution
if not exist %drive_%\nul goto _doit
echo Drive %drive_% already substituted, deleting the old substitution
subst %drive_% /d
echo.
:_doit
rem Make the substitution
echo @echo off> director.bat
echo subst %%drive_%% %%2>> director.bat
dir | find "Directory"> go$$$.bat
call go$$$
if exist director.bat del director.bat
if exist go$$$.bat del go$$$.bat
echo The current substitution for drive %drive_% is
subst | find "%drive_% ="
set drive_=
echo.