Not sure how you'd prefer to do it, but this script takes a filename as an argument and writes the results to the same file.
Const ForReading = 1, ForWriting = 2
Dim fs, txt, contents
Set fs = CreateObject("Scripting.FileSystemObject")
Set txt = fs.OpenTextFile(WScript.Arguments(0), ForReading)
contents = txt.ReadAll
txt.Close
contents = Replace(contents, vbCr, "")
contents = Replace(contents, vbLf, "")
Set txt = fs.OpenTextFile(WScript.Arguments(0), ForWriting)
txt.Write contents
txt.Close
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…