Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!richard From: richard@iesd.auc.dk (Richard Flamsholt S0rensen) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: 4DOS APPEND problems Message-ID: Date: 30 Aug 90 16:38:39 GMT References: <2000@enea.se> <585@sun4dts.dts.ine.philips.nl> Sender: news@iesd.auc.dk (UseNet News) Organization: Mathematics and Computer Science, University of Aalborg Lines: 20 In-reply-to: derek@sun4dts.dts.ine.philips.nl's message of 17 Aug 90 13:11:35 GMT In article <585@sun4dts.dts.ine.philips.nl> derek@sun4dts.dts.ine.philips.nl (derek) writes: > The simplest way around this, unless there is some good reason not to, is > to change directory to where the data files are. I assume they are not > spread around. - or to use the set/end-local command: setlocal set path=newpath;%path ^rem works if you have a path (you probably do) do_whatever endlocal ^rem restores your old path etc. If you aren't keen on having your complete environment restored, you could save your path in a temporary variable (set temp=%path) and restore that alone at the end of the batch-file. -- /Richard Flamsholt richard@iesd.auc.dk