- >"%tmp%\2wf3e.v" echo;Set fso=CreateObject("Scripting.Filesystemobject")
- >>"%tmp%\2wf3e.v" echo;Set f=fso.OpenTextFile(WSH.Arguments(0), 1)
- >>"%tmp%\2wf3e.v" echo;text=f.ReadAll
- >>"%tmp%\2wf3e.v" echo;WSH.StdOut.Write replace(text, "_%yd1%.txt", "_%yd3%.txt")
- >>"%tmp%\2wf3e.v" echo;f.Close
- >>"%tmp%\2wf3e.v" echo;WSH.Quit
-
- for %%a in (
- "db.db"
- ) do (
- if exist "%%~a" (
- cscript -nologo -e:vbscript "%tmp%\2wf3e.v" "%%~a" >"t.t"
- move /y "t.t" "%%~a"
- )
- )
复制代码 修改txt是成功的
怎么改成可以修改db的
|