I have a program installed on a Windows 7 machine which reads a start up config file. The program also opens up a Tcl console window.
The problem I am having is that when I launch the application the usual way (using launcher icons or from the start menu) it doesn't read the config file in my home directory, only the system-wide config file in the program folder. Using the Tcl console, pwd
gives me the programs system folder (C:\Program Files\myprog\
).
If I start the program using the command line ( e.g. C:\Program Files\myprog\myprog.exe
) from the home directory, it does read the local config file, and pwd
returns my home directory.
What is behind this inconsistency in Windows 7? More specifically, I am looking for a way to have the program launch from the home directory so the local config file is read no matter if a user clicks the icon or start menu.
Thanks
Start in:
path of the shortcut?