
| Quote: | |
|
CODE: [Copy to clipboard]@echo off & Setlocal EnableDelayedExpansion
set/a maxnum=10,kind=1,id=1
for /l %%a in (1,1,100) do (
set name=%%a
echo ^<object name="!name!" num="1" maxnum="!maxnum!" kind="!kind!" id="!id!"/^>>>new.txt
set /a maxnum+=10
set /a kindtype=name%%10,idtype=name%%9
if !kindtype! equ 0 set/a kind+=1
if !idtype! equ 0 set /a id+=1
)
start notepad new.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |