批处理命令 处理文件字符串超长问题
时间:2024-12-14 05:12:27
答案

vbs

atxt=".a.txt"btxt="..txt"oldstr="abc"newstr="zzz"Setfso=Wscript.CreateObject("Scripting.FileSystemObject")setf=fso.opentextfile(atxt)s=replace(f.readall,oldstr,newstr)f.closesetr=fso.opentextfile(btxt,2,true)r.writesmsgbox"完成!"Wscript.quit

互助互利,请及时点击【采纳回回答答】

推荐
© 2024 答答问 m.dadawen.com