xref: /aosp_15_r20/external/rust/android-crates-io/crates/libz-sys/src/zlib-ng/win32/replace.vbs
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1strInputFileName = Wscript.Arguments(0)
2strOutputFileName = Wscript.Arguments(1)
3strOldText = Wscript.Arguments(2)
4strNewText = Wscript.Arguments(3)
5
6Set objFSO = CreateObject("Scripting.FileSystemObject")
7Set objFile = objFSO.OpenTextFile(strInputFileName, 1)
8
9strText = objFile.ReadAll
10objFile.Close
11strNewText = Replace(strText, strOldText, strNewText)
12
13Set objFile = objFSO.OpenTextFile(strOutputFileName, 2, True)
14objFile.Write strNewText
15objFile.Close
16

served by {OpenGrok

Last Index Update: Mon Apr 28 06:57:04 CEST 2025