'************************************************
' 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
' 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
相关信息
- 关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 管理登陆
- Copyright © 2003-2007 ZhuYe123.COM. All Rights Reserved . 粤ICP备05072659号
- 致力于中国个人网站发展,我们一直在努力!