Page 1 of 1
Program directory?
Posted: Mon Feb 09, 2004 10:24 am
by jvalks
Hi,
Is there a command to read the path from where my program is started?? I can't find it anywhere in the help files or documentation...
Thanks!
Jurgen
Posted: Mon Feb 09, 2004 11:24 am
by LarsG
Taken from another thread...
Code: Select all
Directory$ = Space(500)
GetCurrentDirectory_(500, @Directory$)
If Right(Directory$, 1) <> "\": Directory$ + "\": EndIf
Debug Directory$
Posted: Mon Feb 09, 2004 11:38 am
by jvalks
Thanks! It works great!
Posted: Mon Feb 09, 2004 12:42 pm
by freedimension
Also take a look at the CodeArchive on
http://www.purearea.net
There are a lot more Snippets and Tips that could be useful for you and that aren't mentioned in the help (because a lot of them are Windows only, i.e. API Stuff).