I'm using TC 9.51 on Windows 10.
I have a buttonbar with a 2 level submenu (here KeyPass bar as menu with a sub menu of the used password file).
I use the %COMMANDER_PATH% variable to point to the referenced tools (e.g. keypass) in the subbar in a relative fashion (%COMMANDER_PATH%\..\keepass\keepass.exe) and as parameter the password file (%COMMANDER_PATH%\..\keepass\abc.kdbx).
This has worked for many years now, but since the latest updates is starts to make problems.
I think since 9.5 an error happens when I try to use the entry in the submenu:
Die angebene Datei kann nicht gefunden werden.
The first part of the parameter in the error is the last binary I used (here c:\tools\tc\totalcmd64.exe) and the COMMANDER_PATH variable wasn't dissolved.
I started TC with a new ini (abc.ini) and created the buttonbar, the sub menu and the sub-sub menu anew.
You can find all the files and some screenshots in this zip file:
Now comes the fun part: Once the error occured I can no longer start any executable from my tools directory using the total commander. It just doesn't happening anything, when you double click. In the SysInternal Process Monitor you see the thread start and short after the thread exit.
Shift-Enter on the binary works (a command prompt opens that starts the binary) and using Windows Explorer works. Restarting TC doesn't help, only a reboot fixes the problem.
You have to use it at command line.
Comamnd: cmd /k
Parameters: echo HELLO %%COMMANDER_PATH%%
It always depends who is the interpreter,... you have to try.
You have never been able to use environment variables in the "Parameters:" field.
%COMMANDER_PATH% will be seen at the TC parameter %C folloved by OMMANDER_PATH
%C transfers the name of the first selected file in the panel (or if no files are selected, the name of the file under the cursor).
If you change:
Code: Select all
[Buttonbar] Buttoncount=1 button1=%COMMANDER_PATH%\..\KeePass\KeePass.exe cmd1=%COMMANDER_PATH%\..\KeePass\KeePass.exe param1=%COMMANDER_PATH%\..\KeePass\abc.kdbx path1=%COMMANDER_PATH%\..\KeePass\ iconic1=0 menu1=Private
Code: Select all
[Buttonbar] Buttoncount=1 button1=%COMMANDER_PATH%\..\KeePass\KeePass.exe cmd1=%COMMANDER_PATH%\..\KeePass\KeePass.exe %COMMANDER_PATH%\..\KeePass\abc.kdbx path1=%COMMANDER_PATH%\..\KeePass\ iconic1=0 menu1=Private
many thanks, that solved my error in the submenu, but not the behavior that I can't execute any binary in my tools folder after some time anymore.
I see that other users have the same problem here ( viewtopic.php?f=28&t=53757 ), my tools folder resides in the one drive as well.
Does anybody has some idea what is going on here ?
Many thanks and stay healthy