回复 3# depsyq | Call TEST() | | Sub TEST() | | strText = InputBox("请输入一些文字:", "输入", "文字范例") | | txtFile = InputBox("请输入保存路径:", "输入", "d:\vbs.txt") | | If strText <> "" Then | | Set fso = CreateObject("Scripting.FileSystemObject") | | | | fso.OpenTextFile(txtFile, 2, True, -1).Write(strText) | | | | Msgbox fso.OpenTextFile(txtFile, 1, False, -1).ReadAll | | End If | | End SubCOPY |
|