- @echo off&setlocal enabledelayedexpansion
- (for /f "delims=" %%a in (1.txt) do (
- set "str=%%a"
- for /f "tokens=4,9 delims=,'" %%a in ("!str!") do (
- if not defined number (
- set /a number=1000010000,_%%a=number
- ) else (
- if not defined _%%a (
- set /a number+=50,_%%a=number
- ) else (
- set /a _%%a+=!random!%%401+100
- )
- )
- for %%a in (!_%%a!) do echo !str:'%%b'='%%a'!
- )
- ))>tem
- del /q 1.txt&ren tem 1.txt
- start 1.txt
复制代码
|