分类广告


推荐文章

  • 没有找到任何内容!
您当前的位置:中国站长下载网络编程ASP专区 → 文章内容

也许是好东西——Windows Script Host-5[关机/For win9x]

  • 作者:佚名    来源:不详    发布时间:2005-12-31 13:03:31
  • 字体大小:
'************************************************
' File:    RunExit.vbs (WSH sample in VBScript)
' Author:  (c) G. Born
'
' Using the Run method to call the Windows 95/98
' ExitWindows API function
'************************************************
Option Explicit

Dim WshShell

Set WshShell = WScript.CreateObject("WScript.Shell")

If (MsgBox("Shut down Windows 95/98", vbYesNo + vbQuestion, _
    "WSH sample - by G. Born") = vbYes) Then _
    WshShell.Run _
        "%WINDIR%\RunDll32.exe user,ExitWindows", 1, -1

'*** End