My exe wants to know its name!

Blitz3D Forums/Blitz3D Programming/My exe wants to know its name!

You can use a trick if there is only 1 exe in your directory.
You can find out from where your program is running using:
MyDir$ = SystemProperty("appdir")

Then browse that directory to find a file with extention ".exe".
Then you've got your entire filename.
Cut the ".exe" from the filename and your program will know it's name.