I set a public variable in my startup code (the main program) and sets its value as follows:
sysProgramPath = sys(5)+sys(2003)+'\'
Of course, you then need to prepend this variable to all instances in your code where you are referencing files in the program directory.
Steve Gibson