I am writing an admin program to check if a certain program is running on all workstations on my network. This will allow an admin to make sure all users have exited a program prior to updates being rolled out.
I can do this with a command prompt and -- tasklist /s computername /fi "imagename eq programIamLookingFor.exe"
The command prompt returns running or not found.
I have used Topwiz's runandwait code in the past, but this simply returns success or failure and does not show the console output, ie, is the program is running or not.
Anyone know of a way to grab the console output with runandwait or another method of determining if a program is running on network workstation using some api from powerbuilder?
Thanks.
Rick