I have a batch file:
arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx
ipconfig /flushdns
How can I do these two commands on Windows XP, every 10 seconds?
|
up vote
4
down vote
favorite
2
|
|||||
|
|
up vote
8
down vote
|
Edit: As mentioned in the comments, |
||||||||||||||
|
|
up vote
8
down vote
|
Try this one:
The ping command will execute for 10 seconds, and all the output will be redirected to the NUL device, meaning that you will see no output from the ping command. It works indeed as a "sleep" command would. |
||||
|
|
up vote
2
down vote
|
Install Cygwin which will make |
||||
|
|
up vote
1
down vote
|
You could set up a Windows service to run your batch file. |
||||
|
|
up vote
1
down vote
|
Cheat: Use this command to pause the batch for 10 seconds choice /n/t:c,<10>/c:cc Now, place it in a never ending loop in the batch and voilĂ ! |
||||||||||
|
|
up vote
0
down vote
|
More precise solution ping unexistent host once and set timeout
But it generate parasite traffic |
||
|
|
|
up vote
0
down vote
|
Thanks Bruno Reis. your scripts worked.. |
||
|
|