Telecom 3G network card self-redial

Source: Internet
Author: User
Tags time in milliseconds



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.