Shut down or Restart the computer with one line of code
Shut down or Restart the computer with one line of code
Rate Shut down or Restart the computer with one line of code
(1(1 Vote))
Private Sub Command1_Click()
'Shutdown the computer
Shell ("rundll.exe user.exe,exitwindows")
End Sub
Private Sub Command2_Click()
'Restart the computer
Shell ("rundll.exe user.exe,exitwindowsexec")
End Sub
Shut down or Restart the computer with one line of code Comments
No comments yet — be the first to post one!
Post a Comment