ExtractFilePath (*Application.ExeName*)
Eugene Nosko escribió: > Use ExtractFilePath(ParamStr(0)) > > On 4/30/07, Francois PIETTE <[EMAIL PROTECTED]> wrote: > >>> Someone know how to get the directory my application is sitting in if >>> running in TService ? >>> >> Do you mean (1) the directory where the executable file is or (2) the >> current directory ? >> >> (1) => ExtractFilePath(Application.ExeName) >> (2) => GetCurrentDirectory >> >> If you have no access in (1) to the Application object, you can use >> GetModuleFilename, passing NULL for first argument. >> >> >> Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html >> -- >> [EMAIL PROTECTED] >> The author for the freeware multi-tier middleware MidWare >> The author of the freeware Internet Component Suite (ICS) >> http://www.overbyte.be >> >> >> __________________________________________________ >> Delphi-Talk mailing list -> Delphi-Talk@elists.org >> http://www.elists.org/mailman/listinfo/delphi-talk >> >> > > > > --- avast! Antivirus: Saliente mensaje limpio. Base de datos de Virus (VPS): 000738-4, 07/05/2007 Comprobado en: 8/5/2007 12:05:54 a.m. avast! tiene los derechos reservados (c) 2000-2007 ALWIL Software. http://www.avast.com __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk