本帖最后由 ivor 于 2012-2-9 14:00 编辑
回复 8# wh1234567 - @echo off
- set duankouhao=1,2,3402,4,5,26,7,8,9
- for %%a in (%duankouhao%) do (
- set %%a=ivor
- )
- for /f "tokens=1,2,3*" %%i in (Result.txt) do (
-
- if defined %%j if not defined %%i if "%%j" NEQ "" if "%%~xj" EQU "" (
- set %%i=.
- set /a ivor%%j+=1
- echo %%i)>>%%j.txt
- )
- for /f "tokens=1,2delims==" %%a in ('set ivor') do (
- set var=%%a
- call echo %%var:~4%% 端口记录了总共%%b个
-
- )
- pause
- REM del Result.txt
复制代码 要自己多学习,不能老问别人哦。楼主挖的一手好坑,你还有要求吗? |