delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/15:19:30

Newsgroups: comp.os.msdos.djgpp
From: Karl Garrison <karlos AT eznet DOT net>
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
Lines: 13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019