home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
pcmag
/
v9n09.lzh
/
PUSHPATH.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-03-09
|
512b
|
22 lines
:==========================================================:
: PUSHPATH.BAT :
: Save current path on "stack" of setpath files. :
:==========================================================:
@echo off
set N=
for %%n in (3 2 1) do if not exist setpath%%n.bat set N=%%n
if (%N%)==() goto ERROR
path > setpath%N%.bat
set N=
goto END
:ERROR
echo.
echo PUSHPATH ERROR: Path stack overflow...
echo | pause > nul
:END