本帖最后由 CrLf 于 2011-10-12 15:34 编辑
- @echo off&setlocal enabledelayedexpansion
- echo 命令运行中,请稍后。...
- net view >view.tmp
- for /f "skip=3" %%i in (view.tmp) do set /a a+=1 & set var=%%i & set _!a!=!var:~2!
- for /l %%i in (1,1,%a%) do ping !_%%i! -n 1 | find "Pinging">>11.tmp & cls & set /p q=当前进度%a%/%%i<nul
- cls
- echo 目前工作组计算机名、IP列表
- for /f "tokens=2,3" %%i in (11.tmp) do echo %%i %%j
- del view.tmp&del 11.tmp
- pause >nul
复制代码
|