Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!cs.umn.edu!uc!apctrc!drd!d.cs.okstate.edu!cummins From: cummins@d.cs.okstate.edu (John Cummins) Newsgroups: comp.sys.atari.st.tech Subject: What path was I executed from? Message-ID: <1991Jun17.215440.10349@d.cs.okstate.edu> Date: 17 Jun 91 21:54:40 GMT Organization: Oklahoma State University, Stillwater Lines: 20 How can my program find the path it was executed from if it's not executed from the current directory? for example: A BBS program (C:\bbs\bbs.tos) calls a door program (C:\bbs\doors\door1\door1.tos). I want the door program to be able to find it's related datafiles (located in the same directory as the door1.tos file) w/o resorting to having the user write a text file with the path in it, and putting it in the current directory (such as C:\bbs\door1.pat containing the path where the data files are to be found). Seems to me this is somewhat like opening a window to a program/.rsc file, then opening a second window, executing the program in the un-topped window by ... holding down the right mouse button and then double clicking. Ordinarily... any support files in the same directory as the program won't be found. What's the proper way to "fix" this. As I would like the Door software to be trivial to install. jc cummins@d.cs.okstate.edu