Command line in Windows

How do you list all processes on the command line in Windows?

Working with cmd.exe:


If you have Powershell: get-process

There is a tool called Windows Management Instrumentation Command-line tool (wmic.exe).

You can call "wmic process list" to see all processes.

Really killing a process in Windows

taskkill /im myprocess.exe /f

The "/f" is for "force". If you know the PID, then you can specify that, as in:

taskkill /pid 1234 /f

Windows Equivalent of ‘nice’

If you want to set priority when launching a process you could use the builtin start command:

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
  [/WAIT] [/B] [command/program]
Use the low through belownormal options to set priority of the launched command/program.

Subpages (1): WMIC Snippets