Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!vgopal From: vgopal@cbnewsc.ATT.COM (venu.p.gopal) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Looking for an interactive directory change pgm. Message-ID: <1793@cbnewsc.ATT.COM> Date: 16 Jul 89 21:56:05 GMT References: <3311@cs.dal.ca> <1146@atanasoff.cs.iastate.edu> <1046@hawkmoon.MN.ORG> Reply-To: vgopal@cbnewsc.ATT.COM (venu.p.gopal) Distribution: na Organization: AT&T Bell Laboratories Lines: 37 In article <1046@hawkmoon.MN.ORG> det@hawkmoon.MN.ORG (Derek E. Terveer) writes: >In article <1146@atanasoff.cs.iastate.edu>, jwright@atanasoff.cs.iastate.edu (Jim Wright) writes: >> How about a 3 line batch file: >> cd z:\path\to\your\application >> application /with /your /favorite %1 %2 %3 /switches %4 %5 >> cd c:\ > ^^^^^^^ > > and what if my original directory was not c:\ ? You can use the utilities "pushdir" and "popdir" to do this (I believe they are published by PC Magazine) as: pushdir cd to_wherever_you_want do_whatever_you_want popdir There are other ways, one I like more uses putenv startdir %%cwd to place the start directory into the env. variable startdir. At the end of your batch file, you can say "cd %startdir%" to get back. IMHO, however, you should set up these batch files and configure your applications so that you DO NOT NEED to change directories. The data files should end up in the current directory. The data can thus be organized into directories that belong to different projects you are working on, rather than belonging to different tools you may use. I have been able to do this for with almost all software packages. Venu P. Gopal UUCP: att!ihuxy!vgopal Internet: vgopal@ihuxy.att.com BITNET: com%"vgopal@ihuxy.att.com" or com%"vgopal%ihuxy@research.att.com" Silence those silent letters, save the world 500 million keystrokes a day.