November 19th, 2013, 06:44 AM
How to locate path at which my delphi file is?
Is there anyway to locate path of delphi file ?
Like there is function locate Application Exe file
filepath1 := ExtractFilePath(Application.ExeName);
Is there anyway locate path of .pas file which we are running?
November 19th, 2013, 09:06 AM
There really isn't, while the .pas file was used to create the .exe file, the exe file has no real link back to its original source code. The best you can do is do a search, much like Windows Search function to look for the file, but you can obviously have more than one copy of the same file sitting in more than one directory.
Originally Posted by ninadgac
Comments on this post