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 "cscript """ & WScript.ScriptFullName & chr(34), 0
    WScript.Quit
End If

posted on 2015-04-16 17:36  Resie  阅读(3599)  评论(0编辑  收藏  举报