Rocco,
From http://www.robvanderwoude.com , Please find the following FAQ - Shutdown/Restart - options.
I started to question whether or not you needed to use AutoIT.
- Win31* ECHO G=FFFF:0000 ¦ DEBUG Popup Task Manager, sometimes reboot
- Win9* RUNDLL USER.EXE,ExitWindows Shutdown (3)
- Win9* RUNDLL USER.EXE,ExitWindowsExec Win95: various results, usualy fast shutdown (and lock PC), sometimes restart Windows, sometimes reboot.
- Win98: Restart Windows, sometimes reboot.
- Win9* RUNDLL SHELL.DLL,RestartDialog "System Settings Change, Do you want to restart your computer now?" dialog
- Win98/ME RUNDLL32 SHELL32.DLL,SHExitWindowsEx n Where n can be any combination (sum) of the following numbers: (4)
0 Logoff
1 Shutdown
2 Reboot
4 Force
8 Poweroff (if supported by the hardware)
Notes:
- 3 Thanks for Bill James and Tom Lavedas, for the information on RUNDLL.
Find more RUNDLL examples I collected on my RUNDLL page. - 4 See article Q234216 in the Microsoft Knowledge base for more information.
Thanks for Alec Soroudi for pointing out this information.
Windows NT also has a RUNONCE.EXE, but I am not sure what its purpose is -- RUNONCE.EXE -q does not shut down NT.
HTH,
- Kent
[ 25 April 2002, 14:18: Message edited by: kdyer ]