Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,812 members, 7,820,839 topics. Date: Tuesday, 07 May 2024 at 10:53 PM

Program To Logoff, Restart, Hibernate And Shutdown Your System - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Program To Logoff, Restart, Hibernate And Shutdown Your System (1369 Views)

So I Asked Avast To Restart My PC In The Next Century / Java Program To Solve Quadratic Equation-dealwap / Q-basic Program To Compute Simple Interest. (2) (3) (4)

(1) (Reply) (Go Down)

Program To Logoff, Restart, Hibernate And Shutdown Your System by Rialekingsley: 9:43pm On Aug 26, 2015
download the .exe and its source code for free @
http://www.wapdynamo.com/details.php?tutid=24
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by Nobody: 8:18am On Aug 28, 2015
Asking people to directly download malware? If I were mod, life ban, no story
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by KazukiIto(m): 4:23pm On Sep 01, 2015
Share the code nigga or f*** off.
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by Rialekingsley: 3:58pm On Sep 03, 2015
Private Sub Command1_Click()
If MsgBox("ARE YOU SURE YOU WANT TO SHUTDOWN SYSTEM?", vbYesNo + vbQuestion, "SHUTDOWN?"wink = vbYes Then
Shell ("shutdown -s"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command2_Click()
If MsgBox("ARE YOU SURE YOU WANT TO RESTART SYSTEM?", vbYesNo + vbQuestion, "RESTART?"wink = vbYes Then
Shell ("shutdown -r"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command3_Click()
If MsgBox("ARE YOU SURE YOU WANT TO LOGOFF?", vbYesNo + vbQuestion, "LOGOFF?"wink = vbYes Then
Shell ("shutdown -l"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command4_Click()
If MsgBox("ARE YOU SURE YOU WANT TO HIBERNATE SYSTEM?", vbYesNo + vbQuestion, "HIBERNATE?"wink = vbYes Then
Shell ("shutdown -h"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Timer1_Timer()
Label2.Caption = TimeValue(Now)
Label3.Caption = DateValue(Now)
End Sub
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by Rialekingsley: 4:01pm On Sep 03, 2015
the place of that icon is a closing bracket
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by Borwe: 5:30pm On Sep 03, 2015
Wow, didn't know people took batch programming language that seriously. Or is it not batch?
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by TechGuyTheNerd: 12:21am On Sep 13, 2015
Borwe:
Wow, didn't know people took batch programming language that seriously. Or is it not batch?

Nope, it is visual basic. He is just executing shell(cmd) commands from the application. A very simplistic approach. You could do same with a batch file.
Re: Program To Logoff, Restart, Hibernate And Shutdown Your System by prowlerovervoid: 2:14pm On Sep 21, 2015
Rialekingsley:
Private Sub Command1_Click()
If MsgBox("ARE YOU SURE YOU WANT TO SHUTDOWN SYSTEM?", vbYesNo + vbQuestion, "SHUTDOWN?"wink = vbYes Then
Shell ("shutdown -s"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command2_Click()
If MsgBox("ARE YOU SURE YOU WANT TO RESTART SYSTEM?", vbYesNo + vbQuestion, "RESTART?"wink = vbYes Then
Shell ("shutdown -r"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command3_Click()
If MsgBox("ARE YOU SURE YOU WANT TO LOGOFF?", vbYesNo + vbQuestion, "LOGOFF?"wink = vbYes Then
Shell ("shutdown -l"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Command4_Click()
If MsgBox("ARE YOU SURE YOU WANT TO HIBERNATE SYSTEM?", vbYesNo + vbQuestion, "HIBERNATE?"wink = vbYes Then
Shell ("shutdown -h"wink
Else
MsgBox "ALL IS WELL"
End If
End Sub

Private Sub Timer1_Timer()
Label2.Caption = TimeValue(Now)
Label3.Caption = DateValue(Now)
End Sub

nice code. Graphite also does the same thing and it's also free with gui. you can download it from here: http://www.bluecarbonite.com

(1) (Reply)

Learn Html Css Sql Php C++ Javascript Java Free Withing 1 Month / Java: Can I Create A Java App Without Ide / Could Any Body Help On How To Build A Mailer That Can Send 100 Mail At Once?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.