中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [求助]把文本中指定行数的内容输出到另外一个文件
作者:
标题: [求助]把文本中指定行数的内容输出到另外一个文件 上一主题 | 下一主题
nett
新手上路





积分 1
发帖 1
注册 2008-11-13
状态 离线
『楼 主』:  [求助]把文本中指定行数的内容输出到另外一个文件

内容是下面这些:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\000001F4]
"F"=hex:02,00,01,00,00,00,00,00,1e,f2,28,6f,47,45,c9,01,00,00,00,00,00,00,00,\
  00,8a,d1,95,97,d7,3a,c7,01,00,00,00,00,00,00,00,00,56,f8,44,df,a0,5f,c7,01,\
  f4,01,00,00,01,02,00,00,10,02,00,00,00,00,00,00,00,00,45,00,01,00,00,00,00,\
  00,00,00,00,00,00,00
"V"=hex:00,00,00,00,bc,00,00,00,02,00,01,00,bc,00,00,00,10,00,00,00,00,00,00,\
  00,cc,00,00,00,00,00,00,00,00,00,00,00,cc,00,00,00,1a,00,00,00,00,00,00,00,\
  e8,00,00,00,00,00,00,00,00,00,00,00,e8,00,00,00,00,00,00,00,00,00,00,00,e8,\
  00,00,00,00,00,00,00,00,00,00,00,e8,00,00,00,00,00,00,00,00,00,00,00,e8,00,\
  00,00,00,00,00,00,00,00,00,00,e8,00,00,00,00,00,00,00,00,00,00,00,e8,00,00,\
  00,00,00,00,00,00,00,00,00,e8,00,00,00,15,00,00,00,a8,00,00,00,00,01,00,00,\
  08,00,00,00,01,00,00,00,08,01,00,00,14,00,00,00,00,00,00,00,1c,01,00,00,14,\
  00,00,00,00,00,00,00,30,01,00,00,04,00,00,00,00,00,00,00,34,01,00,00,04,00,\
  00,00,00,00,00,00,01,00,14,80,9c,00,00,00,ac,00,00,00,14,00,00,00,44,00,00,\
  00,02,00,30,00,02,00,00,00,02,c0,14,00,44,00,05,01,01,01,00,00,00,00,00,01,\
  00,00,00,00,02,c0,14,00,ff,ff,1f,00,01,01,00,00,00,00,00,05,07,00,00,00,02,\
  00,58,00,03,00,00,00,00,00,14,00,5b,03,02,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,00,00,18,00,ff,07,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,\
  00,00,00,24,00,44,00,02,00,01,05,00,00,00,00,00,05,15,00,00,00,09,3a,2a,24,\
  b4,b7,cd,22,07,e5,3b,2b,f4,01,00,00,01,02,00,00,00,00,00,05,20,00,00,00,20,\
  02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,78,00,70,00,63,00,\
  6c,00,69,00,65,00,6e,00,74,00,a1,7b,06,74,a1,8b,97,7b,3a,67,28,00,df,57,29,\
  00,84,76,85,51,6e,7f,10,5e,37,62,00,00,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\
  ff,ff,ff,ff,ff,ff,ff,ff,ff,b3,39,18,01,02,00,00,07,00,00,00,01,00,01,00,8c,\
  00,68,ed,3b,0c,14,4c,91,7d,20,74,b0,2b,cd,f6,01,00,01,00,85,e1,11,0d,56,6e,\
  63,c4,ab,5c,27,9e,35,16,03,c5,01,00,01,00,01,00,01,00
我想能不能用批处理让它只输出保存成一个文件:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\000001F4]
"F"=hex:02,00,01,00,00,00,00,00,1e,f2,28,6f,47,45,c9,01,00,00,00,00,00,00,00,\
  00,8a,d1,95,97,d7,3a,c7,01,00,00,00,00,00,00,00,00,56,f8,44,df,a0,5f,c7,01,\
  f4,01,00,00,01,02,00,00,10,02,00,00,00,00,00,00,00,00,45,00,01,00,00,00,00,\
  00,00,00,00,00,00,00
用批处理如何实现啊,谢谢了

───────────────── 版务记录 ─────────────────
执行:HAT
操作:[2008-11-13]在帖子标题中增加搜索关键字
说明:原标题"[求助]输出行数"不利于论坛搜索
处罚:论坛新人免于积分处罚
提示:建议阅读以下帖子
{1415}提问的智慧
{7326}论坛新手必读,所有人的基本行为准则
{22703}请不要做浮躁的人
{32667}[愤怒]那些连标题都写不清楚的人们啊,你们醒醒吧
{32825}本版严厉整顿烂帖
───────────────── 版务记录 ─────────────────


[ Last edited by HAT on 2008-11-13 at 13:51 ]

2008-11-13 12:49
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
pusofalse
银牌会员




积分 1604
发帖 646
注册 2008-4-13
状态 离线
『第 2 楼』:  

??? 这是输出行数吗?、、、



心绪平和,眼藏静谧,无比安稳的火... Purification of soul...Just a false...^_^
2008-11-13 13:38
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: