Expected that TC will expand %WINDIR% to Windows path but leave %%WINDIR%% as is.
TC 7.5 RC2
For test:
1. create buttonbar button
2. type in cmd: cmd /k echo cmd {1:%COMMANDER_PATH%} {2:%WINDIR%} {3:%%COMMANDER_PATH%%} {4:%%WINDIR%%}
3. type in param: param {1:%COMMANDER_PATH%} {2:%WINDIR%} {3:%%COMMANDER_PATH%%} {4:%%WINDIR%%}
4. choose any icon
5. start button
You will see that TC expands all enrironment variables (for 3, 4 in cmd TC leaves extra %-signs). But it should expand only strings with single-percent signs!
Another bug with this fields:
TC don't pass all parameters to cmd, with my button described above I don't see word 'param' and following parameters at all (if some envvars have big length). If I move all params in cmd field, it works well, if I leave half of them (or all) in param field, TC doesn't pass all params to program. Maybe some parameter buffer too small?
For test:
0. copy TC to folder like "F:\TEMP\1st folder\myfolder\programs\TOTALCMD\"
1-5. same as in prev step
You will see that TC doesn't show all params. I see following:
Code: Select all
cmd {1:F:\TEMP\1st folder\myfolder\programs\TOTALCMD} {2:C:\Windows} {3:%F:\TEMP
\1st folder\myfolder\programs\TOTALCMD%} {4:%C:\Windows%}