Just to clear things up further and actually explain why
shell.resolve didn't work... Taking a look at the
source for
shell.resolve you'll find that it doesn't find your program for you. It simply resolves the path you supply it, for example if you supply it with
//rom/..//Test2/test it will resolve that to
Test2/test. If searching for a program in rom/programs whether it is by the program name or via an alias you can use
shell.resolveProgram. As Bomb Bloke stated however you can use
shell.getRunningProgram to find out the path of the currently running program. He also stated that you can get the directory with
fs.getDir, you can also get the filename with
fs.getName. It should be noted that if you're using CC1.6+ and you want to find a file, you can also use
fs.find.