Skip to main content

How to query Windows system information

  • October 4, 2017
  • 3 replies
  • 0 views

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

3 replies

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.