Re: Check for running application? by mayayana
mayayana
Thu May 11 16:41:14 CDT 2006
For most things you'd need 3rd-party software.
(Or maybe WMI?) But for IE you can use ShellApp:
Set ShellApp = CreateObject("Shell.Application")
Set Wins = ShellApp.Windows
Wins will now be a collection of all open Explorer
or IExplore windows. They're all IE objects, but you
can tell what's what from the LocationURL value.
For folders it will be a valid folder path (though formatted
web-style), while an IE window will have a file path or
URL.
> How can I check if an application is running in a VBScript?
> In this case, I'm trying to see if Internet Explorer is open.
>
> Thanks,
> Russ