| delorie.com/archives/browse.cgi | search |
| From: | nshaf AT intur DOT net ("Nick Shaffner") |
| Subject: | Re: argv[0] has no full path name on winnt |
| 13 Jul 1997 16:24:33 -0700 : | |
| Sender: | mail AT cygnus DOT com |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <199707132243.RAA10748.cygnus.gnu-win32@www.intur.net> |
| Original-To: | "Arlindo da Silva" <dasilva AT woodmore DOT gsfc DOT nasa DOT gov>, |
| <gnu-win32 AT cygnus DOT com> | |
| X-MSMail-Priority: | Normal |
| X-Priority: | 3 |
| X-Mailer: | Microsoft Internet Mail 4.70.1161 |
| MIME-Version: | 1.0 |
| 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. 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 AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |