本帖最后由 pcl_test 于 2015-5-28 16:17 编辑
- @echo off & setlocal enabledelayedexpansion
- (for /f "usebackq tokens=1*" %%a in ("DG.txt") do (
- set "str=%%b"
- set "str=!str:,=!"
- if "%%b" equ "!str!" (
- echo;%%a %%b
- ) else (
- for %%i in (%%b) do echo;%%a %%i)))>"NEW_DG.txt"
- pause
复制代码
|