Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!rutgers!bellcore!wind!hundt
From: hundt@wind.bellcore.com (tom hundt)
Newsgroups: comp.binaries.ibm.pc
Subject: Pushdir/popdir to save/restore "." in .bat files
Message-ID: <4118@bellcore.bellcore.com>
Date: Mon, 7-Dec-87 19:51:11 EST
Article-I.D.: bellcore.4118
Posted: Mon Dec  7 19:51:11 1987
Date-Received: Sun, 13-Dec-87 07:36:10 EST
Sender: news@bellcore.bellcore.com
Reply-To: hundt@bellcore.bellcore.com
Organization: Bellcore, Morristown, NJ
Lines: 36

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   (#9D 0O%.S
M8)TY(*%\14,FC1P0)D! >0.GK!R%<,:Z53C&)QHX9//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.QSPA"#>"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
/--_--\