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

Feb 25, 2017
2
0
#1
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:
#2
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
#3
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,284
11
Solon, OH, USA
#4
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
300
4
#5
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
249
2
#6
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.