发布网友 发布时间:2022-04-23 22:03
共1个回答
热心网友 时间:2023-10-11 09:31
Dim fso,wsh追答Dim fso,wsh
dim txtfile
Set fso = CreateObject("scripting.filesystemobject")
Set wsh= CreateObject("Wscript.Shell")
Set myfile=fso.CreateTextFile( "d:\1\急啊.txt",,ture)
myfile.WriteLine "dim a"
myfile.WriteLine "a=@@@"
myfile.WriteLine "msgbox a"
myfile.Close
fso.movefile "d:\1\急啊.txt","d:\1\急啊.vbs"
set myfile=nothing
set wsh=nothing
那只能一句一句的写罗,可以通过添加并修改myfile.WriteLine "msgbox a"语句,加入其它内容
这个是一行一行的写,速度肯定比较快点