Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!sunybcs!rutgers!mcnc!ecsvax!harris From: harris@ecsvax.UUCP (Mark Harris) Newsgroups: comp.sys.ibm.pc Subject: Finding a program's path. Keywords: PSP, environment, path Message-ID: <7207@ecsvax.UUCP> Date: 22 Jul 89 01:00:00 GMT Organization: UNC Educational Computing Service Lines: 11 I am writing a program which needs to know the path through which it was loaded (rather than the current working directory). DOS 3.x puts this path in the environment, but DOS 2.x doesn't. Is there a reasonably simple way to find this path in DOS 2.x? -- Mark Harris mail:harris@ecsvax(UUCP/BITNET) Department of Mathematical Sciences Appalachian State University Boone, NC 28608 (704) 262-3050 office, 264-6906 home