Need to use the telecom 3G wireless network card to do a test, because to use long time, in the process of using the old line, so do a automatic re-connected batch, OK, gossip less, start:
Establish a dial-up connection first:
001.png
002.png
003.png
004.png
005.png
Set up the connection, test the command effect, on the command line connection:
006.png
To disconnect from the command line:
007.png
This script can be written out:
Script: Redial.bat
Set interval1=5 Set Loop1=1 Setlocal enabledelayedexpansion : Start Echo%loop1% Ping-n 1 www.baidu.com|findstr/i "Estimated time to round trip (in milliseconds):" > Tmp1.txt set/p Pingtong=<tmp1.txt If "!pingtong!" = = "" (Rasphone-h huawei3g1 & rasdial huawei3g [email protected] Vnet.mobi/phone: #777) Timeout%interval1% set/a loop1=%loop1%+1 Goto Start |
Probably this is the case, as to how the effect, have to try to know, I am not particularly big confidence, because generally this kind of things, there will always be an accident, do not know whether there is no signal connection, delete the connection is useless, may have to unplug the Internet card to re-plug to have the signal, God knows.