[comp.binaries.ibm.pc] Pushdir/popdir to save/restore "." in .bat files

hundt@wind.bellcore.com (tom hundt) (12/08/87)

pushdir.com saves the current directory in a cubbyhole somewhere,
and popdir.com restores it.  You can nest them (ie. pushdir a couple
of times and popdir will restore them properly).  The programs
are intended for use in batch files, eg.
REM rootdir.bat
PUSHDIR
CD \
DIR/W
POPDIR  which puts you back where you started at.

Uudecode, and dearcify:
begin 0666 pushdir.arc
M&@A&25-(+D)!5     34PP   (</(CPKSN(    ,0,J,0?,&Q!LS9AHHD%.F
M#0@OD : (/)D"H@9+F: F$,G#YLR(%JT  $$1)LR8=S, 4'FC9L3=$ () B"
M#AJ08]ZT:9.2# @V:=R44<C0H9$T<]"X$!.&#M&&((K@"=,&SD>#9D 0O%.S
M8)TY(*%\14,FC1P0)D! >0.GK!R%<,:Z53C&)Q<Q09\Z#!*G3A@Y:>HX9//F
MS9J59MZ<#0/BC)PP<-"D&8,XS=6@(-+063FFCAR&;F+.51"F[]_ ;>"R'0T:
M"%!/4$1)4BY#3TT !-3?    +@S*=*U<= (   SI( B 4F4*$B))I("P4D3*
ME"1/G("(X0(& $@$. 2X^.]BI29UYM !(:>.&Q $#2*4XF+(DR8@Q)0Q\T9.
M&91/H*QL^1+$G31LV( @\P9$&#=YZ*!)X^:,BP8*%) H(D=.31!PWL"!P_0,
M"*4WQ]2I6L;-2#)I;(ZA4S,/5*G[&#EP)0 7HCN[$MWQ-2! ,PN!]MVMPZ"'
MWCH'7##R0'== EVP!-!*T"Q$,Q"+7&@(,*C=D$ ^-FNL,Z#7&@&+JM':45E.
MA$2: _A09 4 ('5!:#FH?-G!!UWL)%.V# (:"%!54TA$25(N0T]- -0@ 0  
M+@S$=(.FL@(   SI'@B 4F4*$B))I("P4D3*E"1/G("(X0(& $@$. 2X^._B
M)$X]$-VA8Z"3BW\N+ 0(M"_1G3KT#%R)\FM @%P3 ,PSE>7+@3KD''R8U.D9
M)  ; 121(^>-'!!RRH0AD\;-&1!TT)0!,:8.TS)NZ("@&G4,':=Y&B@@0= @
M0H55Y] )PX9-&3(N2.QSP<C!-0&X1.YRZ<MF,PLL1=:!T,-EG05\/?QU8<R 
M-0$ %MG0$&"0L0&R - ZTBR$'!BT,I0F$ 01D7[&B/C3$?L?ET ^.*\10.? 
M( .<AZPS< QX (TN /FX'(#.@F8@=&430"M!:>A"#>"R4*-T(@\J&1G $." 
>+E> +90H+537/^K60^BZ/$C8@U@$IJG#!2!&:1H 
 
end

 /-^-\  Thomas M. Hundt / BELLCORE Morristown NJ / hundt@bellcore.bellcore.com
 |   |  {seismo|ihnp4|ucbvax|decvax|ulysses|allegra|clyde}!bellcore!hundt
/--_--\