Thanks that worked... the next ruddy problem was that the registry 
entry defaults to HKEY_USERS for a service, took a while to figure 
that out.  :-(

Date sent:              Thu, 19 Aug 2004 11:28:56 +1200
From:                   Bevan Edwards <[EMAIL PROTECTED]>
Organization:           Achieve Software Limited
To:                     [EMAIL PROTECTED],
        NZ Borland Developers Group - Delphi List <[EMAIL PROTECTED]>
Subject:                Re: [DUG] Service.ExeName
Send reply to:          NZ Borland Developers Group - Delphi List <[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>

> Hi Rohit,
> 
> There's an API call GetModuleFileName, and passing NULL for the module 
> handle will get the filename for the currently executing process.
> 
> Regards,
> 
> Bevan
> 
> 
> Rohit Gupta wrote:
> 
> > When running as a service, is there any easy way to determine the 
> > path of the executable ?
> > Regards
Regards

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to