Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ptsfa!ihnp4!inuxc!iuvax!bobmon From: bobmon@iuvax.UUCP (Che Flamingo) Newsgroups: comp.sys.ibm.pc Subject: Re: Help with directories and batch files... Message-ID: <3381@iuvax.UUCP> Date: Tue, 17-Mar-87 22:00:58 EST Article-I.D.: iuvax.3381 Posted: Tue Mar 17 22:00:58 1987 Date-Received: Thu, 19-Mar-87 05:20:07 EST References: <4471@columbia.UUCP> Reply-To: bobmon@iuvax.UUCP (Che Flamingo) Organization: Camo Flamingo Liberation Affront Lines: 16 x1.micky@cu20b.columbia.edu (Micky Liu) writes: > >I am trying to use a batch file to: > >1) save the current directory >2) goto another directory >3) execute some program >4) return to saved directory I got a couple of dandy programs off the net, called "pushd.exe" and "popd.exe", that do exactly this by "pushing" to some directory (saving the current dir in an environment variable), then "popping" back to the original. Um...actually, it's not perfect. It doesn't work in secondary copies of COMMAND.COM -- can't find the current environment to store in/read from, I think. Overall, though, I'm quite pleased with it.