This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: argv[0] has no full path name on winnt
- To: "Arlindo da Silva" <dasilva at woodmore dot gsfc dot nasa dot gov>, <gnu-win32 at cygnus dot com>
- Subject: Re: argv[0] has no full path name on winnt
- From: "Nick Shaffner" <nshaf at intur dot net>
- Date: Sun, 13 Jul 1997 17:41:15 -0500
> 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.
Try the GetCommandLine() funciton ( not sure of exact name )
--
Nick Shaffner
http://users.intur.net/~nshaf/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".