delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/02/22:51:25

Date: Fri, 2 Dec 94 11:09:39 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Getting a path in argv[0]
Reply-To: babcock AT cfa DOT harvard DOT edu

> > DJGPP seems to just give the leaf-name of the executable in argv[0],
> > rather than the executable path as DOS compilers seem to.
> At anyrate, the portable solution is to manully check the path().

Programs run from BAT files, aliases or GUI icons are often neither in the
current directory nor on the path.  For that matter, I've been known to
invoke a program by typing a path from the command line.

- Raw text -


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