Test if a Windows-based Application is Running
Posted: 14 Aug 2008 10:26
Hello,
I've spent a few hours googling and have come up empty.
I need to create a DOS script (I call them batch files) where I test if a windows based application is running. If so, I want to set focus to the application (similar to the API function 'ShowWindow' or 'SetForegroundWindow'). and if the app is not running - simply run it.
Thanks for any direction on this.
Jon
I've spent a few hours googling and have come up empty.
I need to create a DOS script (I call them batch files) where I test if a windows based application is running. If so, I want to set focus to the application (similar to the API function 'ShowWindow' or 'SetForegroundWindow'). and if the app is not running - simply run it.
Thanks for any direction on this.
Jon