本帖最后由 慕夜蓝化 于 2018-2-5 17:19 编辑
- @echo off
- Setlocal enabledelayedexpansion
- for /f "delims=" %%i in (ipgroup.txt) do (
- set "str=%%i"
- for %%j in ([ { } ]) do (
- set str=!str:%%j=!
- )
-
- for %%a in (!str!) do (
- set "_%%a=%%a"
- )
- )
-
- for /f "tokens=1,* delims==" %%i in ('set _^|findstr "outerip"') do (
- set "str=%%j"&set str=!str:":"=","!
- for %%a in (!str!) do set "str=%%~a"
- echo,!str!
- )
- pause
复制代码
|