From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: argv[0] has no full path name on winnt 13 Jul 1997 21:02:01 -0700 Sender: mail AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199707140252.MAA11361.cygnus.gnu-win32@mundook.cs.mu.OZ.AU> References: <199707131821 DOT OAA05142 AT woodmore DOT gsfc DOT nasa DOT gov> Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com Arlindo da Silva writes: >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. cygwin32 is a Unix emulation library, and on Unix there is no guarantee that argv[0] will contain the full path. So if you want the full path name, you should use the appropriate Win32 function to get it (as someone else advised), not argv[0]. -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - 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".