Newsgroups: comp.os.msdos.djgpp From: Karl Garrison Subject: Determining the path of the executable at runtime Message-ID: <927cd$11e31.3dd@news.eznet.net> Date: Tue, 02 Sep 1997 17:20:01 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Does anyone know how I can find out what directory a program was invoked from? I would perfer an ANSI-C method, but, failing that, a DJGPP-specific method would be acceptable. Specifically: I am making a HTML editor that will look for configuration files and the like in the same directory as the executable. I don't want to force the user to install in a particular directory, or make them add enviroment variables to their autoexec.bat. thanks, Karl Garrison karlos AT eznet DOT net