Page 1 of 1

How to close a program uning Favorite Toolbar item and Command Prompt?

Posted: 22.01.2023, 19:22
by Forez
I have

Code: Select all

Program or folder: C:\Windows\system32\cmd.exe
Parameter: taskkill /IM AutoHotkey.exe /T /F
With "Run as" Dialog [CHECKED]
and yet after clicking later on icon of this entry placed on one of my Favorite Toolbars, my opened AutoHotkey scripts do not close and all I get is a CMD window opened in location

C:\Windows\system32\


Hence the question: what am I doing wrong?

Re: How to close a program uning Favorite Toolbar item and Command Prompt?

Posted: 23.01.2023, 01:49
by H.Seldon
Type "help cmd" at a command prompt.

Re: How to close a program uning Favorite Toolbar item and Command Prompt?

Posted: 23.01.2023, 12:25
by Forez
H.Seldon wrote: 23.01.2023, 01:49 Type "help cmd" at a command prompt.
Which also works as

Code: Select all

cmd /?
I never thought of doing so until now


As for what I was dong wrong - here is what works:

Code: Select all

/C taskkill /IM AutoHotkey.exe /T /F

So thank you for giving me means to solve this problem and making me learn something new