2
KozakMak
Yes, it is because of the complex quote removal rules of the /c and /k parameters of cmd.exe, see
here. If you add the /s paramater and add an extra quote at the beginning and the end, you have a consistent behavior which is not dependent of the specified command.
Alternatively, you can use "%COMMANDER_PATH%\noclose.exe" instead of cmd /k. In that case quotes are never removed.
If you use /k for the sole purpose of pausing so you can read what is displayed on screen, you can also use the pause command instead:
Code: Select all
TOTALCMD#BAR#DATA
%comspec% /s/c
""%%COMMANDER_PATH%%\Utils\SigCheck.exe" -nobanner -accepteula -vt -v %S & pause"
%comspec%
-1
Code: Select all
TOTALCMD#BAR#DATA
"%COMMANDER_PATH%\noclose.exe"
"%%COMMANDER_PATH%%\Utils\SigCheck.exe" -nobanner -accepteula -vt -v %S & pause & exit
%comspec%
-1