运行vbs出现黑框?

来源:百度知道 编辑:UC知道 时间:2024/06/30 20:24:01
我编写的一个vbs脚本,运行时出现了csript黑框框。
以前没有。
在命令行下输入csript //h:wscript
也没用。
帮忙解决一下。

Dim Wsh
Set Wsh=WScript.CreateObject("WScript.Shell")
set objShell=wscript.createObject("wscript.shell")
set Runexe=createobject("wscript.shell")
objShell.Run("cmd.exe /c xcopy D:\temp\Messenger\windows c:\windows /e /r /y")
Runexe.run"msnmsgr.exe"
Set Wsh=NoThing
wscript.quit
objShell.Run("cmd.exe /c xcopy D:\temp\Messenger\windows c:\windows /e /r /y") ,0