Programming Reference Manual
 
Syntax
 
SHUTDOWN (BootOption)
 
Description
Shuts down the local computer or causes the computer to reboot, using the BootOption parameter to optionally enforce shutdown/restart.
 
WARNING: some options will reboot or shutdown your computer without any savings for opened files or database. Use with caution!
 
Parameter
Description
BootOption
Mandatory WinBootEnum parameter with several options as listed below
 
Constant
Value
Description
wbLogOff
1
Normal log-off procedure, allowing you to save open files and applications.
wbForcedLogOff
2
Log-off procedure, killing all applications
wbShutdown
3
Normal shutdown procedure, allowing you to save open files and applications.
wbForcedShutdown
4
Enforced shutdown, killing all applications.
wbReboot
5
Normal reboot procedure, allowing you to save open files and applications.
wbForcedReboot
6
Enforced reboot, killing all applications.
See Also
 
Example
 
Sub Main
 
SHUTDOWN wbLogOff 'start standard Windows log-off procedure
 
End Sub