Category : Utilities for DOS and Windows Machines
Archive   : PCPATH.ZIP
Filename : POPPATH.BAT
rem P o p P a t h -- restore path saved by PushPath CGoodrich jan 87
for %%s in ( pppp ppp pp p ) do if %pstack%z == %%spz set tmp=%%s
rem Pops saved path from environment string area
rem to be used with PushPath.bat
rem
rem . . How many paths could a programmer pop if the programmer
rem could push paths? [answer: 5, with this code]
rem
rem env var PSTACK serves as stack level pointer (number of 'p' in
rem current value = current stack level)
rem env vars OLDPATHp, OLDPATHpp, . . . contain path stack
rem
rem (c) 1987 PussyCat Systems, box 266, Washington Grove MD 20880
rem all rights reserved
rem Released to the DOS user community for non-commercial use only.
rem if anyone knows of an elegant way to dynamically
rem build and dereference an environment string name
rem in a batch file, please let me know . . . we just
rem use brute force here . . . cg jan 87
goto l%tmp%p
:lppppp
if %oldpathppppp%~ == ~ goto :nopush
path %oldpathppppp%
goto :end
:lpppp
if %oldpathpppp%~ == ~ goto :nopush
path %oldpathpppp%
goto :end
:lppp
if %oldpathppp%~ == ~ goto :nopush
path %oldpathppp%
goto :end
:lpp
if %oldpathpp%~ == ~ goto :nopush
path %oldpathpp%
goto :end
:lp
if %oldpathp%~ == ~ goto :nopush
path %oldpathp%
goto :end
:nopush
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º No path PUSHed -- sorry . . . º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
:end
set pstack=%tmp%
set oldpath%tmp%p=
set tmp=
set pv=
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/