Shortcut to kill an application

2

1

Labview (a programming language) has this nasty habit of hanging after an error while executing and our programmer always goes to task manager to manually kill it. Now I think as a Super User he should use something "easier" to do this!

So now I want to create a (keyboard) shortcut to kill Labview, any thoughts on the best way to do this?

Note: This is for Windows XP

Ivo Flipse

Posted 2009-09-30T06:42:41.897

Reputation: 24 054

1We can only assume that you are using windows? – Nippysaurus – 2009-09-30T06:44:40.647

Answers

4

This might help.

alt text

To create your own quick-killing mechanism, just create a new shortcut anywhere, using this as the location:

taskkill.exe /f /im labview.exe

Once you are done, you can change the icon, or even assign a shortcut key in the properties dialog—just make sure the shortcut is on your desktop or in the start menu if you want the hotkey to work, since Windows hotkeys don't work in the Quick Launch.

Kudos to Lifehacker and HowToGeek

Nippysaurus

Posted 2009-09-30T06:42:41.897

Reputation: 1 223

This is nearly what I need, though how do I have to change it to only kill Labview? – Ivo Flipse – 2009-09-30T07:12:46.843

2taskkill.exe /f /im labview.exe – seanyboy – 2009-09-30T07:18:02.043

Tie this shortcut together with SlickRun and you'll have fast, mouseless access to it as well. ("a free floating command line utility for Windows.") http://www.bayden.com/Slickrun/

– JMD – 2009-09-30T18:40:16.400

3

You can use pskill (in a batch file) to do this.

File KillDodgyApp.bat will be on your desktop and contain the text line:

pskill -t labview.exe

and this can be double clicked to close the dodgy application.

(Alternatively, create a shortcut to pskill.exe with the parameters "-t labview.exe")

seanyboy

Posted 2009-09-30T06:42:41.897

Reputation: 1 568

pskill is treated as virus by many anti-viruses. False positive, of course. – harrymc – 2009-09-30T08:04:33.887

Auch... Awh well I mainly upvoted sean's answer for providing a useful comment on the other answer – Ivo Flipse – 2009-09-30T08:10:24.327

Hi guys, I'd just like to remind users of legacy systems like windows XP Home and below that pskill.exe must be downloaded first. Copy and Paste the Pskill.exe file into C:\WINDOWS\system32.

– Twilight Sparkle – 2013-12-04T17:12:23.657