如何通过vbs脚本往文件里写东西?
如题 filesystemobject Const ForReading = 1, ForWriting = 2, ForAppending = 8Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
f.Write "Hello world!"
f.Close Up正解 3#楼正确,,用文件系统对象.fso
页:
[1]