This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Retrieving name of executable
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 14 Jan 2005 19:31:20 -0000
- Subject: RE: Retrieving name of executable
> -----Original Message-----
> From: cygwin-owner On Behalf Of Earl Chew
> Sent: 14 January 2005 18:39
> I think the name of the current executable is stored in
> myself->progname within cygwin1.dll.
>
> The more easily accessible __progname returns the basename of the
> executable.
>
> Is there a way for an application to obtain myself->program, other
> than resorting to raw win32 call to GetModuleFileName()?
argv[0]
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/