Batch BAT file with ping results in Chinese _dos/bat

Source: Internet
Author: User
Tags set time
Ping results are displayed in Chinese. bat
Copy Code code as follows:

@echo off
Color F2
Echo.
Set for= in
Set of=.
Set With= with
Set in= (in
Set data:= data
Set milli-seconds:= milliseconds)
Set approximate= approx.
Set times= time:
Set round= back and forth
Set trip= Stroke
Set reply= Answer
Set from= from
Set bytes= bytes
Set time= time:
Set timed= time
Set out= over
Set statistics= Statistics
Set packets:= Package:
Set sent= sent =
Set received= received =
Set lost= is missing =
Set loss) = missing)
Set minimum= Minimum value =
Set maximum= Maximum value =
Set average= average =
Set ttl=ttl=
Setlocal enabledelayedexpansion
Set a=
set/p a= Please enter the URL or IP you want to ping
for/f "delims="%%i in (' ping%a% ') does (
Set ret=
For%%a in (%%i) do if defined%%a (set ret=!ret!! %%a!) else set ret=!ret! %%a
If not "!ret!" = = "" (Set ret=!ret:time= time! && Echo!ret!) else Echo.
)
Pause>nul

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.