I need some help to close IE if the IE window title becomes not responding.
This gives me an error.
@echo off
Title Start and Kill Internet Explorer
Mode con cols=75 lines=5 & color 0B
echo(
echo Launching Internet Explorer ...
Start "" "%ProgramFiles%\Internet Explorer\iexplore.exe" "www.google.com"
:: Sleep for 20 seconds
Timeout /T 5 /NoBreak>NUL
echo(
echo Killing Internet Explorer If the Status is Not Responding ...
::echo Hit any Key to kill all instances of Internet Explorer
Pause>nul
Cls & Color 0C
echo(
::Taskkill /IM "iexplore.exe" /F
Taskkill /F "iexplore.exe" /FI "WINDOWTITLE eq *Not Responding*" /FI
pause