#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    42
    Rep Power
    1

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    355
    Rep Power
    7
    Originally Posted by ninadgac
    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?
    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.

    Comments on this post

    • ninadgac agrees

IMN logo majestic logo threadwatch logo seochat tools logo