有2个问题比较相似
1.如何用批处理生成这样的文本文档。
ec01.exe=进程
ec01a.exe=进程
ec01b.exe=进程 ...
xingxing_227 发表于 2011-9-10 06:20 - @echo off
-
-
- for /l %%i in (1 1 100) do (
- for /f "tokens=1,2,3,4,5,6,7,8,9,10,11" %%j in ("a b c d e f g h i j
-
- k") do (
- echo ec0%%i.exe=进程>>a.txt
- echo ec0%%i%%j.exe=进程>>a.txt
- echo ec0%%i%%k.exe=进程>>a.txt
- echo ec0%%i%%l.exe=进程>>a.txt
- echo ec0%%i%%m.exe=进程>>a.txt
- echo ec0%%i%%n.exe=进程>>a.txt
- echo ec0%%i%%o.exe=进程>>a.txt
- echo ec0%%i%%p.exe=进程>>a.txt
- echo ec0%%i%%q.exe=进程>>a.txt
- echo ec0%%i%%r.exe=进程>>a.txt
- echo ec0%%i%%s.exe=进程>>a.txt
- echo ec0%%i%%t.exe=进程>>a.txt
- )
- )
- pause
复制代码
|