Need help relating execution of batch file.
September 26th, 2013rasdial "broadband connection" /disconnect
rasdial "broadband connection" ID PASS
the above is the batch commands. I want them to execute in every 30 minutes intervals.
can someone tell me what would be the command? thanks in advance.
@ECHO OFF
:START
ECHO 30 Minute started.
rasdial "broadband connection" /disconnect
rasdial "broadband connection" ID PASS
PING 1.1.1.1 -n 1 -w 1800000
GOTO START
The reason we use ping to a non existing network, is to create a delay (there is no sleep/wait command.)
Wouldn’t the ping tie up his connection?
would it be better to have the original bat file and have task scheduler execute it every 1/2 hour?
Fluffbutt replied: Wouldn't the ping tie up his connection?
would it be better to have the original bat file and have task scheduler execute it every 1/2 hour?
thanks using…task scheduler
monolith005 replied:
@ECHO OFF
:START
ECHO 30 Minute started.
rasdial "broadband connection" /disconnect
rasdial "broadband connection" ID PASS
PING 1.1.1.1 -n 1 -w 1800000
GOTO START
The reason we use ping to a non existing network, is to create a delay (there is no sleep/wait command.)
its not waiting…. for 30 minute. just being repeated continuously.
debojitkol35 replied:
Fluffbutt replied: Wouldn't the ping tie up his connection?
would it be better to have the original bat file and have task scheduler execute it every 1/2 hour?
thanks using...task scheduler
monolith005 replied:
@ECHO OFF
:START
ECHO 30 Minute started.
rasdial "broadband connection" /disconnect
rasdial "broadband connection" ID PASS
PING 1.1.1.1 -n 1 -w 1800000
GOTO START
The reason we use ping to a non existing network, is to create a delay (there is no sleep/wait command.)
its not waiting.... for 30 minute. just being repeated continuously.
Multitasking – i think it needs to be “start /wait ping” (rest of line)