QUESTION: I need to get the complete path of my executable during runtime. How can I do this? ANSWER: You can use the function ExtractFilePath(AnsiString) which returns the drive and directory portions of the string passed in. For example: AnsiString FileName = ExtractFilePath(Application->ExeName) or AnsiString FileName = ExtractFilePath(ParamStr(0)) |
Last Modified: 11-JAN-00