VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Shutdown,Restart and Logoff WindowsXP

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

Rate 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



Download this snippet    Add to My Saved Code

Shutdown,Restart and Logoff WindowsXP Comments

No comments have been posted about Shutdown,Restart and Logoff WindowsXP. Why not be the first to post a comment about Shutdown,Restart and Logoff WindowsXP.

Post your comment

Subject:
Message:
0/1000 characters