Path: utzoo!attcan!uunet!snorkelwacker!think!zaphod.mps.ohio-state.edu!sunybcs!boulder!seri!wind55!marshall From: marshall@wind55.seri.gov (Marshall L. Buhl) Newsgroups: comp.sys.ibm.pc Subject: Re: How can I set a PATH longer than 128 bytes ? Message-ID: <1990Mar14.172308.21398@seri.gov> Date: 14 Mar 90 17:23:08 GMT References: <5762@ncrcae.Columbia.NCR.COM< <90059.112138GILLA@QUCDN.BITNET> Sender: news@seri.gov (news [NO CHARGE]) Organization: Solar Energy Research Institute Lines: 33 richard@iesd.auc.dk (Richard Flamsholt S0rensen) writes: >>mlord@bnr-rsc.UUCP (Mark Lord) writes: >>>< >>> >>You need APPENV21.ARC from simtel20. I use it to set my own 500 byte PATH. > ~~~~~~~~ Richard Flamsholt gives some very good suggestions about accessing programs without adding them all to the path. I have a minor quibble about his second technique, which, BTW, is the one I use. > 2 : The appending of a directory to a path can also be done like this: > set temp=%path% /* remember current path */ > set path=%path%;c:\text\wp50 /* add directory */ > c:\text\wp50\wp %1 /* same as before ... */ > set path=%temp% /* restore old path */ > set temp= /* delete "temp"-variable */ It is probably more efficient to change the second line to: set path=c:\text\wp50;%path% Since the whole purpose of this batch file is to run WP 5.0, why not put it in the beginning of the path so access is faster? -- Marshall L. Buhl, Jr. EMAIL: marshall@wind55.seri.gov Senior Computer Engineer VOICE: (303)231-1014 Wind Research Branch 1617 Cole Blvd., Golden, CO 80401-3393 Solar Energy Research Institute Solar - safe energy for a healthy future