Retrieving name of executable

Christopher Faylor
Fri Jan 14 19:58:00 GMT 2005

On Fri, Jan 14, 2005 at 10:39:23AM -0800, Earl Chew wrote:
>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
>Is there a way for an application to obtain myself->program, other
>than resorting to raw win32 call to GetModuleFileName()?

argv[0] or __argv[0] or /proc/self/exename


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list