home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
batutl
/
echsys10.arc
/
PUSHD.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-09-25
|
619b
|
23 lines
@Echo Off
Rem Save current drive and directory for later return by POPD
Rem (maximum nesting level: 9; may be extended)
Rem Assumes room for temporary batch file on drive C:
Set temp=
If "%dir9%" == "" Set temp=9
If "%dir8%" == "" Set temp=8
If "%dir7%" == "" Set temp=7
If "%dir6%" == "" Set temp=6
If "%dir5%" == "" Set temp=5
If "%dir4%" == "" Set temp=4
If "%dir3%" == "" Set temp=3
If "%dir2%" == "" Set temp=2
If "%dir1%" == "" Set temp=1
If "%temp%" == "" Goto pushdstackfull
envsys dsk%temp% ^:
envsys dir%temp% ^\
Set temp=
Goto pushdend
:pushdstackfull
Echo Stack is full!
:pushdend