checking for an open app with wscript etc 
Author Message
 checking for an open app with wscript etc

How can you check if a certain app is open/running?
I know wsobj.AppActivate will activate it if it's there but how do I check
for its existence?

Sara



Mon, 04 Aug 2003 09:50:48 GMT  
 checking for an open app with wscript etc
You can use the AutoIt ActiveX control to check for windows and
applications.
It's available at CWashington's Win32 Scripting site.

Luey


Quote:
> How can you check if a certain app is open/running?
> I know wsobj.AppActivate will activate it if it's there but how do I check
> for its existence?

> Sara



Mon, 04 Aug 2003 10:25:59 GMT  
 checking for an open app with wscript etc
hi Sara,

The usual response to this question is to "get yourself a copy of wmi"
(that's windows mamagement instrumentation), and then use the process list
enumerator.  If the application you are looking for is in the process list,
then you know it's running.  If you search this ng and/or the wsh ng, you
will find several demo scripts showing how to enumerate the process list.

wmi can be downloaded from:

    http://msdn.microsoft.com/downloads/sdks/wmi/download.asp

and the microsoft documentation may be found at:

http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/wmisd...
guide_0dwz.htm

However, the "official" microsoft doc is rather heavy going.  There are some
more readable articles on wmi published in msdn magazine
(http://msdn.microsoft.com/msdnmag/).

cheers, jw


Quote:
> How can you check if a certain app is open/running?
> I know wsobj.AppActivate will activate it if it's there but how do I check
> for its existence?

> Sara



Tue, 05 Aug 2003 04:22:08 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Checking for memory leaks (open objects) after app is closed

2. Checking for memory leaks (open objects) after app is closed

3. .NET Equiv. of App.Title, App.ExeName, etc

4. .NET Equiv. of App.Title, App.ExeName, etc

5. WScript debugging with Interdev (VBS, WSF, etc)

6. WScript debugging with Interdev (VBS, WSF, etc)

7. Opening a template and replacing a text through WSCRIPT.EXE

8. wscript.sleep 1 and wscript.sleep 2

9. WScript.GetObject doesn't get running Word App

10. WScript.GetObject doesn't get running Word App

11. Terminating apps executed by WScript.Shell

12. Check for exclusive file open--if prior open

 

 
Powered by phpBB® Forum Software