Syntax |
System.Restart |
Description |
Restarts the operating environment. |
Example |
This example asks whether the user would like to restart Windows after exiting. Sub Main button = MsgBox ("Restart Windows on exit?",ebYesNo, _ "Exit Windows") If button = ebYes Then System.Restart 'Yes button selected. If button = ebNo Then System.Exit 'No button selected. End Sub |
See Also |
System.Exit (method). |
S |