Help needed for Beginner in DOS commands

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
hydrotruth
Posts: 1
Joined: 22 Apr 2014 04:03

Help needed for Beginner in DOS commands

#1 Post by hydrotruth » 22 Apr 2014 04:15

Hello to all members!

First time in this forum and would like some assistance if possible.
I need to create and run a batch file to do the following:

To save a .htm file of a particular webpage to a directory example C:/test.htm
Needs to run every 10secs, replace the file test.htm with the new one and keep the same name.

Can this be done? Any assistance would by greatly appreciated.

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Help needed for Beginner in DOS commands

#2 Post by penpen » 22 Apr 2014 06:08

This could be done using additionally vbs or powershell.
Sources could be found within this thread:
http://www.dostips.com/forum/viewtopic.php?f=3&t=4850.

To loop you may using timeout (>?= Win Vista +) and goto (this is scetched, and has to be terminated using ctrl + c):

Code: Select all

@echo off
:loop
echo do something here
timeout /T 10
goto :loop


penpen

Post Reply