And I'm searching for 1explorer so it's not found.
--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Candy" <.> wrote in message tasklist /FI "imagename eq 1explorer.exe" |find "No tasks running with the specified criteria"&echo %errorlevel%
Errorlevel will be 0 if found and 1 if not.
If errorlevel 0 if not errorlevel 1 set flag=explorer running
If errorlevel 1 if not errorlevel 2 set flag=explorer not running
Note it is an assumption that a web browser is iexplore. Mine is explorer.
VBScript
ListOpenShellWindows.vbs
Set objShell = CreateObject("Shell.Application")
Set AllWindows = objShell.Windows
For Each window in AllWindows
msgbox window.locationname
Next
This displays all browser windows - there is no difference between IE and Explorer. So it will show C:\ and
www.google.com.