If anyone can help I would greatly appreciate it.
Thank you,
wolfman
'--------------------------------------------------
' Shutdown script
'--------------------------------------------------
set WshShell = CreateObject("WScript.Shell")
WshShell.run "C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows", 0, false
WScript.quit
For restart replace exitwindows with exitwindowsexec.
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 1"
Reboot:
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 2"
Logoff User:
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 0"
--
Bill James
Microsoft MVP·DTS
»Free Win9x VBScript Utilities«
»»New Address - Change your links!««
http://www.svvi.net/wgjames/vbspage/
"Wolf Family" <wolff...@bigfoot.com> wrote in message news:#2UGKgw4$GA....@cppssbbsa02.microsoft.com...
wolfman
"Warren Bell" <wjb...@table.jps.net> wrote in message
news:395D680A...@table.jps.net...
> I have VBScript shutdown and restart scripts for win98 that I use. They
> can be run from the scheduler. Copy this as shutdown.vbs:
>
> '--------------------------------------------------
> ' Shutdown script
> '--------------------------------------------------
> set WshShell = CreateObject("WScript.Shell")
>
> WshShell.run "C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows", 0, false
>
> WScript.quit
>
>
> For restart replace exitwindows with exitwindowsexec.
>
>
> Wolf Family wrote:
> >
wolfman
"Bill James" <wgj...@mvps.org> wrote in message
news:e3bf2Bx4$GA.836@cpmsftngp03...
Shutdown:
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 1"
Reboot:
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 2"
Logoff User:
set ws = WScript.CreateObject("WScript.shell")
ws.run "rundll32 shell32.dll,SHExitWindowsEx 0"
--
Bill James
Microsoft MVP·DTS
»Free Win9x VBScript Utilities«
»»New Address - Change your links!««
http://www.svvi.net/wgjames/vbspage/
"Wolf Family" <wolff...@bigfoot.com> wrote in message
news:#2UGKgw4$GA....@cppssbbsa02.microsoft.com...