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

Discussion, questions and support.
Post Reply
Message
Author
User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#1 Post by Forez » 22.01.2023, 19:22

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?

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

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

#2 Post by H.Seldon » 23.01.2023, 01:49

Type "help cmd" at a command prompt.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#3 Post by Forez » 23.01.2023, 12:25

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 35 guests