🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5506

Re: where are you after a batch file

#5506
From: Glenn Connery
Date: Tue, 28 Jan 1986 19:43
16 lines
1301 bytes
> Where are you after a batch file completes?  Wherever it chooses to leave
> you.  Where do you want to be?  Back where you started.  How can you get
> there automatically?
> 
> I have just written a c program that reads the current working directory and
> outputs it.  This output is just right for a batch file to return you to
> where you want to be.  If any one is interested, send me e-mail.
> 
> John Higley
> ...tektronix!tekig5!johnhi

But just doing "CD >somefile" gets you that.  What you really want is
programs that PUSH and POP the current directory, so that they can handle
nested calls (I use them both in CED synonyms and in batch files).

Glenn
Technical Details
Message-ID: <240@bnrmtv.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!amdcad!amdahl!bnrmtv!connery
References: <440@tekig5.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site bnrmtv.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!amdcad!amdahl!bnrmtv!connery
From: connery@bnrmtv.UUCP (Glenn Connery)
Newsgroups: net.micro.pc
Subject: Re: where are you after a batch file
Message-ID: <240@bnrmtv.UUCP>
Date: Tue, 28-Jan-86 14:43:28 EST
Article-I.D.: bnrmtv.240
Posted: Tue Jan 28 14:43:28 1986
Date-Received: Sat, 1-Feb-86 00:31:45 EST
References: <440@tekig5.UUCP>
Organization: Bell Northern Research, Mtn. View, CA
Lines: 16