Skip to main content

How can we query Windows to determine if a specific program is currently running?

How can we query Windows to determine if a specific program is currently running?

A system call to "tasklist" will give you a list of programs currently running. You can call "tasklist.exe > tasklist.txt" to have a text file to parse through if you are looking for a specific program. The output includes the names and PID of running programs along with other information. Run "tasklist /?" for optional command-line flags.

How can we query Windows to determine if a specific program is currently running?

A system call to "tasklist" will give you a list of programs currently running. You can call "tasklist.exe > tasklist.txt" to have a text file to parse through if you are looking for a specific program. The output includes the names and PID of running programs along with other information. Run "tasklist /?" for optional command-line flags.

How can we query Windows to determine if a specific program is currently running?

Thanks for the info.