
Shutdown and restart windows
May I ask what MVP stands for ?
Thanks,
Billy
Pretty sure this only works on Win98 or WinMe:
CreateObject("WScript.Shell").Run "rundll32 shell32.dll,SHExitWindowsEx 2"
You can get a little (20KB) EXE to do this in all versions at
http://www.webdev.net/orca/download/reboot.exe. That site is Lee
Chapelle's, another MVP, in case you are worried about the source.
--
Bill James
Microsoft MVPDTS
?Win9x VBScript Utilities?
www.billsway.com/vbspage/
Quote:
> I know how to shut down windows Thanks to Gunter Born but can anyone
> tell me how to shutdown and then restart windows after running a script
> Thanks