RUN("rundll32.exe user.exe,exitwindows")
' Or:
' From: HaGGi
' THE CODE TO SHUT DOWN A PC
' Aug 30th, 2002, 9:55pm ?
'These are handy to know too....
RUN("rundll32.exe shell32.dll,SHExitWindowsEx " + STR$(n))
'where n is one, or a combination of, the following numbers:
' 0 - LOGOFF
' 1 - SHUTDOWN
' 2 - REBOOT
' 4 - FORCE
' 8 - POWEROFF