- May
- 120
- 1
If I'm reading the documentation correctly, assuming no command line options are specified, TCC looks for TCMD.INI in the program directory or %LOCALAPPDATA%. From there, it finds the other files it needs (TCSTART, TCEXIT) either via INI directives, or by looking alongside the executable. But there is no way to locate TCSTART alongside the INI file, i.e. in %LOCALAPPDATA% (or in any other user-specific location) without hard-coding the path (and hence the specific user ID).
I can't use environment variables in TCMD.INI. I could have a TCSTART.BTM in the program directory that invokes %LOCALAPPDATA%\JPSoft\TCSTART.BTM, but I am trying to avoid putting anything in the program directory, for both backup reasons and because doing so needs elevation. Also doing so would be potentially confusing, because it would ignore alternative file extensions.
Have I missed a way of having all of my TCC startup files in a per-user location, such that the files do not need to hard-code the location path (reference via environment variables is fine) and I don't have to require specific command line parameters? I'm surprised it is not easier to do this, given the increased lockdown of the Program Files directory in recent versions of Windows.
I'm currently testing this in TCC/LE 13, but if there's a solution in TCC 16, that's fine too as I'm looking at this as part of deciding whether or not to switch back to TCC (I've been using powershell for a while) so getting the upgrade is an option.
Paul
I can't use environment variables in TCMD.INI. I could have a TCSTART.BTM in the program directory that invokes %LOCALAPPDATA%\JPSoft\TCSTART.BTM, but I am trying to avoid putting anything in the program directory, for both backup reasons and because doing so needs elevation. Also doing so would be potentially confusing, because it would ignore alternative file extensions.
Have I missed a way of having all of my TCC startup files in a per-user location, such that the files do not need to hard-code the location path (reference via environment variables is fine) and I don't have to require specific command line parameters? I'm surprised it is not easier to do this, given the increased lockdown of the Program Files directory in recent versions of Windows.
I'm currently testing this in TCC/LE 13, but if there's a solution in TCC 16, that's fine too as I'm looking at this as part of deciding whether or not to switch back to TCC (I've been using powershell for a while) so getting the upgrade is an option.
Paul