CurrentDir()

BlitzMax Forums/BlitzMax Programming/CurrentDir()

N3m(Posted 2005) [#1]
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 )


Yan(Posted 2005) [#2]
LaunchDir$


rdodson41(Posted 2005) [#3]
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().


Yan(Posted 2005) [#4]
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.