Need to use the telecom 3G wireless network card to do a test, due to long-time use, in the process of using the old line, so do a self-actively re-connected batch processing, good, gossip less, start:
Establish a dial-up connection first:
001.png
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvvgvzdgluz2jh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
002.png
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvvgvzdgluz2jh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
003.png
004.png
005.png
Set up the connection, test the command effect, command line connection:
006.png
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvvgvzdgluz2jh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
To disconnect from the command line:
007.png
The script will be able to write it out:
Script: Redial.bat
@echo off Set interval1=5 Set Loop1=1
Setlocal enabledelayedexpansion
: Start Echo%loop1% Ping-n 1 www.baidu.com|findstr/i "round trip estimated time in milliseconds:" > Tmp1.txt for/f%%i in (' dir/b tmp1.txt ') do set Pingtong=%%~zi If "!pingtong!" = = "0" (rasphone-h huawei3g1 & rasdial huawei3g [email protected] Vnet.mobi/phone: #777)
Timeout%interval1% set/a loop1=%loop1%+1 Goto Start |
This is probably the case, as to how the effect, have to try to know, I am not particularly big confidence, because of general such things. There will always be accidents, do not know whether there is no signal connection. Remove the re-connect also useless, may have to unplug the Internet card to re-plug to have the signal, God knows.
Telecom 3G network card self-redial