
CODE: [Copy to clipboard]执行后首先会生成十个随机数字到变量filename代表的文件名list.txt,然后依次读取list.txt的内容,通过%%j来引用。@echo off & setlocal ENABLEDELAYEDEXPANSION
set filename=list.txt
for /l %%i in (1,1,10) do echo !random! >>%filename%
for /f %%j in (list.txt) do type list.txt > %%j.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |