本帖最后由 Gin_Q 于 2020-4-15 19:29 编辑
- @echo off&setlocal enabledelayedexpansion
-
- ::192.168.1.1
-
- echo "Pls Wait..."
- date /t > IPList.txt
- time /t >> IPList.txt
-
- for /f "tokens=*" %%a in ('type "list.txt"') do (ping %%a -n 1 1>nul
- if !errorlevel! EQU 0 echo %%a)>>IPList.txt
-
- echo "Done!"
- pause
复制代码
|