Shutdown Win2K with a double click

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,140
6
81
Create a text file called shutdown.vbs

Put the following as the contents of the file:

set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.SendKeys &quot;^{ESC}uls{ENTER}&quot;


Save the file and place it on the desktop or in the Quicklaunch or whatever. It should shutdown Win2K when you double click it.

You can also restart Win2K, with a similar file, using the following:

set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.SendKeys &quot;^{ESC}ur{ENTER}&quot;