每次PING 很麻烦的
今天百度一下,做了这个
把代码保存在F盘的一个新建文本中 然后把文本后缀名改为 .bat 格式
复制内容到剪贴板
代码:
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
ping www.sexinsex.net >F:\temp1.txt
for /f "eol=- tokens=2 delims=[" %%i in (temp1.txt) do echo %%i>>temp2.txt
for /f "eol=- tokens=1 delims=]" %%i in (temp2.txt) do echo %%i>>网站地址.txt
start 网站地址.txt
del temp1.txt
del temp2.txt
@echo off
ping 127.0.0.1
del 网站地址.txt