-----Thorsten1867 wrote:I use this for my programs:Code: Select all
Procedure.s GetProgramDirectory() ; Program Path Protected ProgDir.s ProgDir = GetPathPart(ProgramFilename()) If ProgDir = #PB_Compiler_Home+"Compilers" Or ProgDir = GetTemporaryDirectory() ProgDir = GetCurrentDirectory() EndIf ProcedureReturn ProgDir EndProcedure
Edit:
Hm. After doing some tests, does not work as expected. I use the line coded by Michael51,
which works better for me. I also extended the whole process to determine the
location on compile-time. See http://www.purebasic.fr/english/viewtopic.php?p=249534


