Page 1 of 1

How do I know which folder my app was run from?

Posted: Sun Oct 07, 2007 10:35 pm
by Armoured
Hi
with windows:

Code: Select all

a$=Space(999) : GetModuleFileName_(0,@a$,999) : appdir$=GetPathPart(a$)
with Linux? :?




Thanks

Posted: Sun Oct 07, 2007 10:42 pm
by freak
All OS, since PB 4.00:

Code: Select all

appdir$=GetPathPart(ProgramFilename())

Posted: Tue Oct 09, 2007 9:11 am
by Armoured
Thanks freak :)