发布网友 发布时间:2022-04-23 19:51
共4个回答
热心网友 时间:2023-10-06 03:35
错了,是这样的
@echo off
:ip
cls
set /p a=请输入IP1地址:
set /p b=请输入IP2地址:
set /p a1=请输入IP1的Ping次数:
set /p b1=请输入IP2的Ping次数:
Ping -n %a1% %a%
Ping -n %b1% %b%
echo PING完成
pause
goto :ip
热心网友 时间:2023-10-06 03:36
start cmd /k ping -n 10 192.168.1.1
start cmd /k ping -n 10 192.168.1.2
start cmd /k ping -n 10 192.168.1.3
start cmd /k ping -n 10 192.168.1.4
同时Ping四个地址,每个分别Ping 10次
热心网友 时间:2023-10-06 03:37
@echo off
:ip
set /p a=请输入IP1地址:
set /p b=请输入IP2地址:
set /p a1=请输入IP1的Ping次数:
set /p b1=请输入IP2的Ping次数:
Ping -n %a1% %a%
热心网友 时间:2023-10-06 03:37
@echo off
>1.txt more +6 "%~f0"
for /f "delims=" %%a in ('type,1.txt') do start "" ping %%a
pause
exit
ip:
192.168.168.1
192.168.0.1
...........