[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] 批处理怎样生成指定内容的文本文档?

有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

LZ真够狠啊
枫中残雪:风停了,我的心却在动,让我心中的寒意走向远方

TOP

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

TOP

hankerer 发表于 2011-9-10 09:10



    楼上兄弟 谢谢你  但是代码是不是有错误啊 我怎么运行部起来

TOP

回复 4# xingxing_227

我运行怎么可以??、可能是你那里搞错了

TOP

返回列表