Dim obj_shell
set obj_shell = createobject("wscript.shell")
host = WScript.FullName
If LCase( right(host, len(host)-InStrRev(host,"\")) ) = "wscript.exe" Then
      obj_shell.run "cmd /c title 检测工具 &&  cscript.exe //nologo " & chr(34) & wscript.scriptfullname & chr(34)     'title为弹框标题内容
     Wscript.quit
else
        WScript.Echo "检测数据库环境变量...."

        WScript.Echo "5秒后自动退出..."
        WScript.Sleep 5000  

end if

posted on 2015-08-25 10:44  Resie  阅读(1218)  评论(0编辑  收藏  举报