xxoo2 当前离线
列兵
@echo off for /f "tokens=*" %%i in ('dir/s/b *.ini *.txt') do ( (for /f "tokens=*" %%j in ('type "%%i"') do ( set s=%%j set s=!s:aa=bb! set s=!s:ccc=ddd! 这里可以复制上面的,然后更改需要替换的 echo !s!)>temp.txt type temp.txt>"%%i") del temp.txt复制代码
评分人数
pcl_test 当前离线
荣誉版主
arr = array("a|举","b|个","c|栗","d|子") file = "文本.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(file, 1) txt = f.ReadAll f.Close For Each a In arr t = split(a, "|") txt = replace(txt, t(0), t(1)) Next Set f = fso.OpenTextFile(file, 2) f.Write txt msgbox "Done"复制代码
TOP
jrx401 当前离线
上等兵
gawk 当前离线
少将
云中漫步跑 当前离线
tigerpower 当前离线
四级士官