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.