- Rick Domogalik
- PowerBuilder
- Friday, 25 March 2022 02:37 PM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.