Add a timer in MS-DOS
IJK
Posted messages
20
Status
Member
-
IJK Posted messages 20 Status Member -
IJK Posted messages 20 Status Member -
Hello,
I would like to create a .bat file that would open a page with IE and then close it afterward.
To do that, I created a .bat file that opens my page and immediately after ends the IE process.
However, I don’t know if the page has enough time to load since everything happens very quickly, so I would like to add a timer of a few seconds between the moment it opens IE and when it closes it.
Could someone figure out how to do this?
Configuration: Windows XP Firefox 3.0.3
I would like to create a .bat file that would open a page with IE and then close it afterward.
To do that, I created a .bat file that opens my page and immediately after ends the IE process.
However, I don’t know if the page has enough time to load since everything happens very quickly, so I would like to add a timer of a few seconds between the moment it opens IE and when it closes it.
Could someone figure out how to do this?
Configuration: Windows XP Firefox 3.0.3
2 answers
-
Why not download the pages in a loop with wget or curl, these are tools normally under Linux but there is a port under Windows with Cygwin and in the gnuwin32 project (I think that's its name)
These two tools allow you to download web content, which simulates page viewing, thus using fewer resources and you know exactly when the page is fully downloaded. Personally that's how I would do it. In addition you can consider using these tools by setting a scheduled task in Windows to run at desired times for a desired duration.
--
Contributor member
Specialized in networks, web mastering, programming -
The launch of my .bat must happen precisely before an event that I plan directly through the software it's related to, so it's not a matter of a specific time but of an event that can occur at any moment. The scheduler built into the software I use allows me to launch an executable (.bat, .exe...) just before the event I'm interested in.
However, I'm not very knowledgeable in programming, so I didn't really understand the manipulation you recommended, I'll try to spend some time next week, I think I'll find a lot of information on Google, thanks.
Otherwise, I just thought of doing it with a program in C, but again, I'll need to look into it a bit more next week I think.