How to realize batch bat File displaying ping results in Chinese
This article will explain in detail how to achieve Chinese display ping results of the batch bat file, the editor feels very practical, so share to you as a reference, I hope you can get something after reading this article.
Display ping results in Chinese. Bat
The code is as follows:
@ echo off color f2 echo. Set for= set with= on set of= uses set in= (in set data:= data set milli-seconds:= milliseconds) set Approximate= approximate set times= time: set round= round trip set trip= stroke set Reply= reply set from= from set bytes= byte set time= time: set timed= time set out= exceeds set statistics= statistics set Packets:= packet: set Sent= sent = set Received= received = set Lost= lost = set loss) set Minimum= minimum = set Maximum= maximum = Set Average= average = set TTL=TTL= setlocal enabledelayedexpansion set a = set/p a = Please enter the URL to ping or IP for / f "delims="% I in ('ping% a%') do (set ret= for% an in (% I) do if defined%% a (set retouchers)% a!) Else set retweets ret!% an if not "! ret!" = "" (set retorted retort time! & & echo! ret!) Else echo. ) Pause > nul on "how to achieve Chinese display ping results batch bat file" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.