Program's directory

Windows specific forum
tony
User
User
Posts: 26
Joined: Thu May 01, 2003 1:35 am
Location: California
Contact:

Program's directory

Post by tony »

How do I get the directory where my program is. I would like to know the directory where the .exe is located

Thanks,
Tony
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

I think this is what you need:

Code: Select all

windir.s  = Space(512)
Getcurrentdirectory_(512, windir)
Debug windir
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Does no one read the Newbie FAQ?

viewtopic.php?t=4876
--Kale

Image
Post Reply