
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