中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 03:35
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS批处理 & 脚本技术(批处理室) » [求助]难题,再更新,还继续求助中:如何替换~|为☆
可打印版本  2,468 / 15
第16楼 cny798 发表于 2010-07-24 23:07
新手上路 发帖 18 积分 18
用VBS就能又快又好,只是不知道批处理可否。

附上VBS源码:


content1="~|"
content2="☆"
name1="1.txt"
name2="2.txt"

set fso=createobject("scripting.filesystemobject")

set file=fso.opentextfile(name1,1)
if file.AtEndOfStream<>true then
content=file.readall
file.close
content=replace(content,content1,content2)
set file=fso.opentextfile(name2,2)
file.write content
file.close
else
file.close
end if
上一页  1 2
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023