CurrentDir()
BlitzMax Forums/BlitzMax Programming/CurrentDir()
| ||
CurrentDir() returns the path where the excutable is located in the filesystem. but is there a way to get the path where my excutable was started? ( when i start it from the terminal ) |
| ||
LaunchDir$ |
| ||
I'm not quite sure what you are asking, do you mean you want to get the full path of the executable? If so use AppArgs[0] will give you the name of the file being executed. I'm not sure if its the full path name or just the file name, in which case you can use RealPath:String(). |
| ||
AppArg$[0] contains the name of the app as it was called, AppDir$ will contain the current apps path and AppFile$ will hold the apps full filename. |