Page 1 of 1

/exit

Posted: 2012-08-13, 14:05 UTC
by Hurdet
Do it is possible to add a Command line parameter to close TC if it is running?

Posted: 2012-08-13, 15:27 UTC
by HolgerK
dos command:

Code: Select all

taskkill /im Totalcmd.exe
NirCmd:

Code: Select all

nircmd.exe closeprocess Totalcmd.exe
or

Code: Select all

nircmd.exe win close class "TTOTAL_CMD"
AutoHotkey script:
CloseTc.AHK wrote:IfWinExist, ahk_class TTOTAL_CMD
{
WinClose
}
I guess there are a lot of additional ways to reach this goal without the need to start TC first. :wink:

Regards
Holger

Posted: 2012-08-13, 15:42 UTC
by Hurdet
closeprocess not save opened tabs in wincmd.ini.
But i have solved with send message.

Posted: 2012-08-13, 15:59 UTC
by HolgerK
nircmd win close and ahk WinClose gives TC the opportunity to save the opened tabs.

Regards
Holger