找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 19660|回复: 0

[文本处理] 继上一个批处理替换指定字符串的求助

[复制链接]
发表于 2014-10-22 22:21:24 | 显示全部楼层 |阅读模式
这里一共有2个文件a.txt   
<map version="1.0">
  <mapID target="dir_open_icon" URL="dir/open/icon.html"/>
  <mapID target="Platform_copy_topics" URL="Platform/copy_topics.html"/>
  <mapID target="NAS_ISM_help_network_ldap_manager" URL="NAS/ISM_help/network_ldap_manager.html"/>
</map>

b.txt
<toc version="1.0">
<tocitem text="Set a" target="dir_open_icon"/>
<tocitem text="Set b" target="Platform_copy_topics"/>
<tocitem text="Set c" target="NAS_ISM_help_network_ldap_manager"/>
</toc>

需要最终得到a.txt和b.txt 为:
<map version="1.0">
  <mapID target="icon" URL="dir/open/icon.html"/>
  <mapID target="copy_topics" URL="Platform/copy_topics.html"/>
  <mapID target="network_ldap_manager" URL="NAS/ISM_help/network_ldap_manager.html"/>
</map>

b.txt为
<toc version="1.0">
<tocitem text="Set a" target="icon"/>
<tocitem text="Set b" target="copy_topics"/>
<tocitem text="Set c" target="network_ldap_manager"/>
</toc>

前面那个求助解决了一个文件的修改,但是结合另外一个文件就不会了。

请各位大神指点一下哈,急
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-20 19:33 , Processed in 0.027873 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表