Qbasicnews.com

Full Version: rebooting the computer?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a command that lets me reboot the computer?
Yeah there is. Try this: OUT &h64, &hfe. If Windows is running though, it should only exit the program.
Years ago when everbody was running DOS, there was a program called WARMBOOT.COM which you could put into a batchfile and do a SHELL to the batchfile from your program, and it would boot the machine. I have a copy somewhere, but I don't know if it would work with DOS under Windows.

Sorry I didn't give you much to go on. I found several articles on the Internet with references to WARMBOOT.COM, but nothing about running it in DOS under Windows. You might take a look.
*****
This might have just been my old computer, but there was an old program called "REBOOT.COM" awhile ago that was put onto boot disks when created. I was using Windows 95 at the time, so check it out. I don't think it needs to be run in pure DOS, but I'm not sure.
The FAQ is handy for this sort of thing; why don't you check it out sometime? Big Grin

http://faq.qbasicnews.com/?blast=RebootPc
In Win 2K, XP you may want to shell to shutdown.exe:

http://www.budja.com/shutdown/
Thanx :bounce: :rotfl: :barf: Tongue