PDA

View Full Version : Batch file


zenkasas
01-14-2009, 05:19 PM
would it be possible to write a batch file that checks is there a lost connection and that could make ipconfig /renew automaticaly?

Paul Komski
01-15-2009, 04:50 AM
I'm not that good at batch files other than to say that if you can do what you want from a command prompt just copy those same commands into a text file and save it with .bat extension. It doesn't always work but should be close. To run it on a schedule add as a scheduled task. To get it to loop on a schedule have it include something like the following for a 10 second repeating loop:-


:TOP

sleep 10

GOTO TOP