Hi Experts,
I am having windows XP in my desktop and my visual basic editor gives error messages frequently. Does anyone know how to perform visual basic reboot computer to normal status. Thanks.
Regards,
Josephadamm
- Login or Signup Now to post comments

Hi,
To reboot computer there are two methods in VB. I think you use .net code. I will give you both codes.
Shutdown –r
System.Diagnostics.Process.Start("shutdown", "/r") '
Changing letter “ r “ you can change the process to shutdown ,restart, or logoff.
Thanks.
There are various commands to shut down the computer. Using the below code will shut down the computer after a 30 seconds delay:
System.Diagnostics.Process.Start("shutdown", "/r")
System.Diagnostics.Process.Start("ShutDown","/r /t 00")