Edited by Microwarrior, 26 July 2015 - 05:13 PM.
0
2 replies to this topic
#1
Posted 26 July 2015 - 04:58 PM
I am making a program that needs to access many other files in order to function properly. I want this to be able to be placed in any directory on the system and have the main file access the other files relative to where it currently is. Ideally, I would want a command to return the main program's directory without using the search API or the local directiry. Keep in mind that the programs local directory may change many times throughout the program. Any help would be nice!
#2
Posted 26 July 2015 - 05:14 PM
You may be looking for shell.getRunningProgram(). You explenation isn't very clear though, how can the running directory change?
#3
Posted 26 July 2015 - 05:39 PM
Thanks for your help! this is what the solution was:
fs.getDir(shell.getRunningProgram())
fs.getDir(shell.getRunningProgram())
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users