How to make a shortcut of force quitting the program using Command Prompt?

Feb 25, 2017
2
0
I've seen multiple ways of force quitting *programs* , but sometimes, Task Manager freezes or doesn't respond at all, is there a way to bind a shortcut of force quitting the current program you're on without using Task Manager?

EDIT*: Replaced "Command Prompt" with "programs"
 
Last edited:
Apr 2, 2011
1,607
15
55
North Carolina, USA
Look up usage of TaskEnd...

taskend /?
End the specified process.

TASKEND [/F] pid | name | "title"
/F(orce close)
pid : process ID
name : process name
"title" : window title

[C:\Program Files\JPSoft\TCMD21]which taskend
taskend is an internal command
 
Feb 25, 2017
2
0
Look up usage of TaskEnd...

taskend /?
End the specified process.

TASKEND [/F] pid | name | "title"
/F(orce close)
pid : process ID
name : process name
"title" : window title

[C:\Program Files\JPSoft\TCMD21]which taskend
taskend is an internal command

I meant bind as a keyboard shortcut to ending the current program by using the Command Prompt method.
 

samintz

Scott Mintz
May 20, 2008
1,557
26
Solon, OH, USA
I meant bind as a keyboard shortcut to ending the current program by using the Command Prompt method.

If the current TCC appears to be hung, you can't.

You could however build a script that would launch when a hot key is pressed. That script could populate a @select and allow you select the task to kill using Taskend.
-Scott


Sent from my iPhone using Tapatalk
 

rps

Jul 6, 2008
440
6
If the current TCC appears to be hung, you can't.

You could however build a script that would launch when a hot key is pressed. That script could populate a @select and allow you select the task to kill using Taskend.
-Scott

Sounds like something you have actual done already. Care to share the actual code with us mere mortals? :smile:

At this point the posts have gone beyond CMD and this thread should probably be continued in the Support forum.
 
Aug 23, 2010
688
9
I've seen multiple ways of force quitting *programs* , but sometimes, Task Manager freezes or doesn't respond at all,
Which in turn means the PSAPI (programming API that is used to manage processes) is not responding and you will not be able to tomely use it in any other program just the same way taskmanager hangs.