1.

Solve : Batch program-DOS?

Answer»

I have a DOS batch program that opens 80+ windows with different URLS.  Is there a code that can check the status of the IE WINDOW (if it FAILED to open the URL - proceed to the next URL and print a log of the failed URL)?  Would appreciate any help you can provide.  Thank you. Quote

I have a DOS batch program that opens 80+ windows with different URLs

Opens them how? With Internet Explorer? Ping? What method?

On a notepad that was saved as a batch file:
echo Start test of 3  URLs

start iexplore.exe http://www.yahoo.com
echo yahoo started

start iexplore.exe https://www.google.com
echo google started

start iexplore.exe https://www.gmail.com
echo gmail started

echo Completed test of 3 URLsI would use ping and check the errorlevel. Having 80 windows open will be a royal pain in the *censored*.
Is there an errorlevel number I have to check for?  I agree about this being a pain but it does relieve me from CLICKING 80+ times on a hyperlink  .  Thank you for the suggestion, I'll check for code examples of pinging and errorlevel checking. Quote from: newbie8 on November 24, 2010, 11:54:37 AM
Is there an errorlevel number I have to check for? 

for your method, no.

A errorlevel is RETURNED when a program exits. Never before. So while the "start" program could give you back a errorlevel, it couldn't get that errorlevel from Internet Explorer since it's still running, and hasn't closed. Quote from: BC_Programmer on November 24, 2010, 12:09:03 PM
for your method, no.

A errorlevel is returned when a program exits. Never before. So while the "start" program could give you back a errorlevel, it couldn't get that errorlevel from Internet Explorer since it's still running, and hasn't closed.

Quote from: Me
I would use ping and check the errorlevel. Having 80 windows open will be a royal pain in the *censored*.
Thanks for all your feedbacks and suggestions.  I will try the ping method.Is there a way to find out on DOS command when my internet connection is slowing?


Discussion

No Comment Found