How to reboot instantly?

Stuff that don´t fit in the other categories.
Post Reply
User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

How to reboot instantly?

Post by Nerdz »

I did a little fake novel login and it is link to a database... but now I want to add the reboot stuff so when you *error message* tell the user that the user wasn't able to log on, I want to comp to restart so when the user try it again, it works. It's in Visual Basic .Net.

I tried some stuff but it all close my account first and slowly restart. Is there an instant one?
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm,I don´t know if this helps, but here´s the command line way:

Code: Select all

shutdown -r -t 0

Post Reply