Okay...I only have 1 bug...it stopped working in Vista...well...the timer stopped working in Vista, still works in 7 and XP just fine...here is the code:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("shutdown /s /f /t 900")
End Sub
Here's the funny thing though...if I make a batch file with just shutdown /s /f /t 900, it works...or if I type in shutdown /s /f /t 900 in the cmd it works...but when running that through the shell command (in Vista), nothing happens...yet it works on XP and 7... And another funny thing...this code works fine though:
Code:
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Shell("shutdown /a")
End Sub
Any ideas what is going wrong here...? Thanks for your time
EDIT: Opps...forgot to say this is VB...