本帖最后由 ArdentMan 于 2011-12-26 19:29 编辑
很久没来了~~~- @Echo Off&SetLocal EnableDelayedExpansion
- For /F "tokens=2 delims=:" %%i In ('Ipconfig /All^|Findstr /c:"IP Address"') Do (
- Set "Str=%%i"
- For %%j In (10.10.9.80 10.10.93.87 10.10.94.120 10.10.127.66) Do If "!Str:~1!" EQU "%%j" Set "Flag=a"
- If Defined Flag (
- Echo !Str:~1!
- ) Else (
- Echo No
- )
- )
- Pause>Nul
复制代码
|