Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!uhccux!virtue!cantva!phys169 From: PHYS169@canterbury.ac.nz (Mark Aitchison, U of Canty; Physics) Newsgroups: comp.sys.ibm.pc Subject: Re: Getting programme dir Message-ID: <7532@canterbury.ac.nz> Date: 28 May 90 16:49:37 GMT References: <1990May23.155510.6403@cs.utk.edu> <127@evtprp0b.UUCP> Followup-To: comp.sys.ibm.pc Lines: 9 In article <127@evtprp0b.UUCP>, tea6219@evtprp0b.UUCP (Terry E. Acker) writes: > In MSC 5.0, there is a function (I believe its called getenv) that can access > the environment passed to the program. In the environment is the PATH > variable, which you will be able to inspect. Late model DOS's put the full pathname after the environment (i.e. after the double null bytes). You can use Turbo Pascal's PARAMSTR(0) to get it easily. Mark Aitchison.