Delphi: parent folder of executable
Posted by webmaster Guido on November 06, 2003 at 18:10:37:
In Reply to: Need to find parent folder. posted by Ashraf El-Sayed on November 06, 2003 at 14:59:20:
: Hi. Sorry if this is a trivial question, but I am in my final year computing project, and making a fron-end for a dos-run application.
: Thank you very much.
In Delphi, Application.ExeName gives the path plus filename of the executable.
Label1.Caption := Application.ExeName;
This displays c:\test\testprog.exe
[ DelphiLand: free Delphi source code, tips, tutorials ]