EXE directory

BlitzPlus Forums/BlitzPlus Programming/EXE directory

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey everyone. I've been working with "CommandLine()" to be able to open up the selected file in my program from windows explorer. Anyways, it works fine, except for when I open a file in a directory other than the program's exe file. This sets the "CurrentDir" to the directory where the file opened from explorer is, and throws everything off in the program. Does anyone know how to fix this, or is there a "ExeDir" type command to get the directory of the program that is running? Thanks.