2009年2月6日

How to get Windows XP processes list in command line

For some reason, we may need to administrate the XP computer in a command prompt (says, Run-> cmd.exe)

Today, I need to remote my home server from mobile network. Since I don't know who is using the computer at that moment, I cannot start Remote Desktop to avoid family complain ;-). So the question is here: how do I know which program/process is running. In Windows, I can start the "Task Manager" to check the processes. In the command prompt, below is the solution:

> wmic process get name

To filter out necessary information, you may:
> wmic process get name |fine /I "{the text you want to search}"

To know the help, type:
> wmic /?
> wmic process /?
> wmic process get /?
...

For more reference, please see:
http://msdn.microsoft.com/en-us/library/aa394572(VS.85).aspx

Note: Windows XP Home edition does not come with WMIC function.
Blogged with the Flock Browser

沒有留言:

發佈留言