Weird behaviour after submenu error (%COMMANDER_PATH% as parameter)
Posted: 2020-04-07, 09:19 UTC
Hi,
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:
---------------------------
KeePass
---------------------------
c:\Tools\TC\Totalcmd64.exeOMMANDER_PATH..\KeePass\abc.kdbx
Die angebene Datei kann nicht gefunden werden.
---------------------------
OK
---------------------------
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:
https://1drv.ms/u/s!Ah8G-ivHBVFukpBSBUTE0xuVHbOHcQ?e=mrSrXI
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.
Best regards
Clas
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:
---------------------------
KeePass
---------------------------
c:\Tools\TC\Totalcmd64.exeOMMANDER_PATH..\KeePass\abc.kdbx
Die angebene Datei kann nicht gefunden werden.
---------------------------
OK
---------------------------
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:
https://1drv.ms/u/s!Ah8G-ivHBVFukpBSBUTE0xuVHbOHcQ?e=mrSrXI
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.
Best regards
Clas