by Ghaffar Nagafpour(غفار نجف پور) (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 6th August 2005
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Shutdown,Restart and Logoff WindowsXP
'Email:[email protected]
'Location:Iran-Mazandaran-Tonekabon
'*********************************
'Add 3CommandButton to form
'********************************
Private Sub Command1_Click()
Shell ("shutdown.exe -s -t 0") '=> "Shutdown"
End Sub
Private Sub Command2_Click()
Shell ("shutdown.exe -r -t 0") '=> "Restart"
End Sub
Private Sub Command3_Click()
Shell ("shutdown.exe -y -t 0") '=> "Logoff"
End Sub