Set fso=Wscript.CreateObject("Scripting.FileSystemObject")
set f=fso.opentextfile("C:\test.txt")
s=replace(f.readall,"被替换的字符", "希望替换的字符")
f.close
set r=fso.opentextfile("C:\test.txt",2,true)
r.write s
Wscript.quit
该脚本是将C盘中的test.txt文件中的所有的被替换的字符替换为希望替换的字符