delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: Retrieving name of executable |
Date: | Fri, 14 Jan 2005 19:31:20 -0000 |
MIME-Version: | 1.0 |
In-Reply-To: | <41E811DB.1030800@agilent.com> |
Message-ID: | <NUTMEGGmOAIpq8JVCu30000108a@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 14 Jan 2005 19:31:20.0468 (UTC) FILETIME=[9FED9D40:01C4FA6F] |
> -----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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |