bsp;& “. “ & VbCrLf & _
“Could not temporarily change the default script host to Cscript.“
Err.Clear
Wscript.Quit
End If
Wscript.Quit
End If
’----上面这段代码是强制到cscript命令行,一般要在cmd命令行下输入cscript *.vbs,如果直接执行vbs会用wscript打开,这样只会弹个对话框,我不喜欢,有不想每次都cscript,所以要写点额外的代码,双击后会调用一个wscript执行csript,然后再消灭自己,幸好微软的网站上提供了这个代码
------------------------------------
strComputer = “页码:[1] [2] [3] [4] [5] [6] 第3页、共6页 |