david winter

Killing a program using a batch file in Windows

Having got my keyboard shortcut working to launch my batch file, next was to actually make it quit the emulator program when invoked.

@echo off
taskkill /F /im Fusion.exe

This is basically the command prompt version of CTRL + ALT + DEL. /im stands for ‘Image Name’, which is basically the program executable, and is the same as what you’d see in the ‘Task Manager’ window. /F just forces the program to close.

May 15, 2008

Questions? Comments? Your 2¢'s? → @davidwinter