home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
TSBAT27.ZIP
/
PUSHDIRE.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-14
|
659b
|
26 lines
echo off
echo Nonresident pushdir (Stores the current directory name)
echo By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Jan-90
echo.
rem Saves the current drive and directory names in pushdriv and
rem pushdire environment variables.
rem After changing directory, you can pop back to the original
rem drive and directory by applying popdire.bat.
rem Requires the setpushd.exe program at path
setpushd
if errorlevel==1 goto _err
pushd$$$
rem if you have MS-DOS 3.3 you may use the following command instead
rem of pushd$$$: call pushd$$$
goto _out
:_err
echo File access error: Failed to push the drive and directory
:_out
echo on