标题: [文本处理] 批处理怎样生成指定内容的文本文档? [打印本页]
作者: xingxing_227 时间: 2011-9-10 06:20 标题: 批处理怎样生成指定内容的文本文档?
有2个问题比较相似
1.如何用批处理生成这样的文本文档。
ec01.exe=进程
ec01a.exe=进程
ec01b.exe=进程
ec01c.exe=进程
ec01d.exe=进程
ec01e.exe=进程
ec01f.exe=进程
ec01g.exe=进程
ec01h.exe=进程
ec01i.exe=进程
ec01j.exe=进程
ec01k.exe=进程
ec02.exe=进程
ec02a.exe=进程
ec02b.exe=进程
ec02c.exe=进程
ec02d.exe=进程
ec02e.exe=进程
ec02f.exe=进程
ec02g.exe=进程
ec02h.exe=进程
ec02i.exe=进程
ec02j.exe=进程
ec02k.exe=进程
一直延续到100
2.如何用批处理生成这样的文本文档。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01.exe]
"Debugger"="ec01.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01a.exe]
"Debugger"="ec01a.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01b.exe]
"Debugger"="ec01b.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01c.exe]
"Debugger"="ec01c.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01d.exe]
"Debugger"="ec01d.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01e.exe]
"Debugger"="ec01e.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01f.exe]
"Debugger"="ec01f.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01g.exe]
"Debugger"="ec01g.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01h.exe]
"Debugger"="ec01h.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01i.exe]
"Debugger"="ec01i.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec01j.exe]
"Debugger"="ec01j.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02.exe]
"Debugger"="ec02.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02a.exe]
"Debugger"="ec02a.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02b.exe]
"Debugger"="ec02b.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02c.exe]
"Debugger"="ec02c.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02d.exe]
"Debugger"="ec02d.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02e.exe]
"Debugger"="ec02e.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02f.exe]
"Debugger"="ec02f.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02g.exe]
"Debugger"="ec02g.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02h.exe]
"Debugger"="ec02h.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02i.exe]
"Debugger"="ec02i.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ec02j.exe]
"Debugger"="ec02j.exe"
一直延续到100
作者: wc726842270 时间: 2011-9-10 08:37
LZ真够狠啊
作者: hankerer 时间: 2011-9-10 09:10
有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
复制代码
作者: xingxing_227 时间: 2011-9-11 00:09
hankerer 发表于 2011-9-10 09:10
楼上兄弟 谢谢你 但是代码是不是有错误啊 我怎么运行部起来
作者: 小麦 时间: 2011-9-11 10:49
回复 4# xingxing_227
我运行怎么可以??、可能是你那里搞错了
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |