Am using GetProgrammDir to get my application folder and it works but I need more control over it were I can select folders inside or outside of my program say there 2 folders Data and Items data will store exe and items will store information txt but the data will be out side of the data folder like below
C:\MyProgra\Items\Readme.txt
C:\MyProgram\Data\RunMe.exe
Now when I use GetDir I get data and exe folder fine but am unable to modify it to get MyProgram Folder only so that I can set the needed folders like
C:\MyProgram\<THEN I WOULD SET IT HERE IN DELPHI>
anyone know how to do this?, Thanks