Program directory?

Just starting out? Need help? Post your questions and find answers here.
jvalks
User
User
Posts: 17
Joined: Thu Jun 05, 2003 12:47 pm

Program directory?

Post 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
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

Taken from another thread...

Code: Select all

Directory$ = Space(500) 

GetCurrentDirectory_(500, @Directory$) 
If Right(Directory$, 1) <> "\": Directory$ + "\": EndIf 

Debug Directory$ 

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
jvalks
User
User
Posts: 17
Joined: Thu Jun 05, 2003 12:47 pm

Post by jvalks »

Thanks! It works great!
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post 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).
Post Reply