When I'm online I often run into cases where ADSL changes IPs. I hope to implement a function like this: use a batch file to disconnect, reconnect, display the current IP, compare the current IP with the previous IP, and if they're the same then disconnect and redial again... until it gets a new IP
I can only do the part before that. Please give me some guidance, experts, thanks!!
rasdial /disconnect
sleep 7000
rasdial adsl 123456@adsl 123456
sleep 150
ipconfig
sleep 6000
I can only do the part before that. Please give me some guidance, experts, thanks!!
rasdial /disconnect
sleep 7000
rasdial adsl 123456@adsl 123456
sleep 150
ipconfig
sleep 6000
