From: dasilva AT woodmore DOT gsfc DOT nasa DOT gov (Arlindo da Silva) Subject: argv[0] has no full path name on winnt 13 Jul 1997 12:49:26 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199707131821.OAA05142.cygnus.gnu-win32@woodmore.gsfc.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Original-To: gnu-win32 AT cygnus DOT com X-Mailer: ELM [version 2.4 PL21] Original-Sender: owner-gnu-win32 AT cygnus DOT com I have this wrapper application which uses argv[0] to figure out the directory where it was been installed, setting up all the other necessary enviroment variables before firing up the main application. Well, this works on win95; on winnt argv[0] returns only the first token on the command line (without the full pathname). Is there a way to get full pathname of the executable that works on both win95 AND winnt? Any help greatly appreciated. -- *-----------------------------------------------------------------* | | | ^|^ ARLINDO DA SILVA | | | 212 Lexington Drive | | _|_ Silver Spring, MD 20901 | | @ ___|___|__ | | _|_|__________|_______/ mailto://dasilva AT alum DOT mit DOT edu | | \ o o o o o o o / | | \_______________/ Home: (301) 754-1121 | | ^^^^^^^^^^^^^^^^^^^^^^^^ FAX: (301) 805-7959 | | | *-----------------------------------------------------------------* - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".