anonymous
2007-01-30 11:19:13 UTC
---------------------------------------------------------------------
Option Explicit
Set ws = WScript.CreateObject("WScript.Shell")
dim ws , title, Main, n, cn
main = "HKEY_CURRENT_USER\Control Panel\Desktop"
title = "Change Menu Delay Utility"
cn = inputbox("Input a integer for 1-999 and click OK", title )
if not (cn="") then
we.regwrite main & "MenuShowDelay", cn
end if
Dim mybox
if mybox = msgbox("A system restart is required before the changes can be made, continue?.", _
vbyesno, title) = 6 then
...
------------------------------------------------------
And that is where I get lost...How do restart the computer?
I think it has something to do with
%windir%\System32\shutdown.exe -r
but I dont know how to execute that command...help
P.S I am saving the file as .vbs