₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,675 members, 8,528,765 topics. Date: Wednesday, 02 December 2026 at 08:45 PM

Toggle theme

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 (1596 Views)

1 Reply (Go Down)

Program To Logoff, Restart, Hibernate And Shutdown Your System by Rialekingsley(op): 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(op): 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(op): 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

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

Dynamic Web Content Fully Explained • C++ Programming: To Do Or Not To Do. • I Need A Programmer To Tutor Me