home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
pcmag
/
v9n09.lzh
/
POPP2.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-03-09
|
701b
|
29 lines
:==========================================================:
: POPP2.BAT :
: Retrieve path from "stack" of setpath variables. :
:==========================================================:
@echo off
set N=
IF NOT "%SETPATH1%"=="" SET N=%SETPATH1%
IF NOT "%SETPATH2%"=="" SET N=%SETPATH2%
IF NOT "%SETPATH3%"=="" SET N=%SETPATH3%
if "%N%"=="" goto ERROR
PATH %N%
set N=
IF NOT "%SETPATH1%"=="" SET N=SETPATH1
IF NOT "%SETPATH2%"=="" SET N=SETPATH2
IF NOT "%SETPATH3%"=="" SET N=SETPATH3
set %N%=
set N=
goto END
:ERROR
echo.
echo POPPATH ERROR: Path stack is empty...
echo.
:END