Alter.Org.UA  
 << Back Home RU ru   Donate Donate www/www1/www2

Console Process KILL utility for Windows NT-family

Strange, but I could not find console utility for killing processes under Windows. Actually, there are many such utilities, but there is no one which can locate processes by

wkill supports Windows NT4, 2000, XP, 2003, Vista

  • Window caption
  • sub-string of Window caption
  • module (executable) name
  • substring of full module (executable) pathname

So, I had to write WKILL myself. The name is chosen to avoid conflicts with sort of cygwin and unixport process kill utilities.

Usage:
  wkill <options> [<params>]
Options:
  -c, --caption <Window Caption>  Caption of the window to be closed
  -a, --all                       Kill all matching windows.
                                    By default only the 1st found window is closed
  -e, --exact                     Matching window captions exactly.
                                    By default all captions beginning from <Window Caption>
                                    are matched.
  -i                              Use case insensetive comparison.
  -p, --pid <Process ID>          Kill by process ID (PID).
  -n, --process-name <exac name>  Kill by process (executable) name.
  -N, --process-name-substr <exec name>
                                    Kill by matching part of full process name/path.
                                    By default (with -n) module name is matched exactly.
  -x, --exit-code <Exit code>     Process exit code (-1 by default).
  -l, --list                      Enum (mached) processes without killing.
Examples:
  wkill -c "Microsoft Word"
  wkill -p 440


  • added -l option for enumerating running processes
  • added -N option for matching modules by substring of full module (executable) pathname
wkill_v3.rar/tgz (20.3 Kb/21.2 Kb)
wkill_v3_src.rar/tgz (6.4 Kb/6.6 Kb)
2008.06.30

wkill_v2.rar/tgz (19.6 Kb/20.4 Kb)
wkill_v2_src.rar/tgz (5.4 Kb/5.5 Kb)
2006.04.08

Please, send your comments and propositions here: Mail to alterX@alter.org.ua (remove X)  

designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2017