   rebooting in dos
  is there a c++/winAPI comand that can reboot a pc,  and have to boot up in dos(it has to do with homework) 
ExitWindowsEx(EWX_FORCE | EWX_REBOOT, 0);In Windows 9x I suppose you could add command.com to the autoexec.bat file, but I wouldn''t recommend it. Newer versions of Windows won''t even have DOS. ;  Maybe...and it depends.In Win9x, shortcuts can trigger a reboot into dos mode by telling the OS to play switcheroo with some of the startup files and then rebooting. I would suppose if shortcuts can tell the OS to do that, there must be a programmatic way of doing it, although I wouldn't know how. Create a shortcut to a DOS application and check out some of the advanced settings. You can specify completely unique startup files (config.sys and autoexec.bat) for that application alone which are stored in the shortcut file itself! There is no need to edit the actual files.Note: NT, 2000, XP etc. have no DOS mode. They only have a DOS emulation environment, i.e. the ntvdm.   [edited by - SpaceRogue on August 1, 2003 10:37:44 PM]