How to restart computer on WIN05 with WSH and VBS?
Posted on 2001-06-11
WIN95 and IE5.5:
I tried with this:
WshShell.Run ("C:\WINDows\rundll.exe user32.dll,Exitwindowsex 2 0")
It give me error.
Is there anyway to do it?
One more think I found it that really surprising me:
WshShell.Run ("C:\WINdows\rundll.exe user.exe,Exitwindowsexec")
If I do this, I can successfully restart the computer, I am just wondering is this good way to call a private function of system user.exe.
PLease help me out in this, If there is another way to do,
Please tell me.