How do I get the directory where my program is. I would like to know the directory where the .exe is located
Thanks,
Tony
Program's directory
-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
I think this is what you need:
Code: Select all
windir.s = Space(512)
Getcurrentdirectory_(512, windir)
Debug windir