Qbasicnews.com

Full Version: restart in msdos shutdown
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
is there a way to resart the comp into msdos mode and is there a way to shut down through QB?
I'm not sure about this, but shutting down might be accomplishable. . .

rundll32.exe shell32.dll,SHExitWindowsEx n
n can be one of the following:
  • 0 - logoff
  • 1 - shutdown
  • 2 - restart
  • 4 - forced shutdown (closes all applications; doesn't save data!)
  • 8 - poweroff
  • -1 - restart Explorer (the Windows desktop)
Source: http://aumha.org/win4/a/shutcut.php
in msdos, i think there is a "restart" command...not entirely sure...

you might find somthing useful here:
http://www.computerhope.com/msdos.htm

i think this is for Win98 MsDos (i believe every windows release has a different version of Dos....could be wrong)

oz~
so are you saying i do a shell command (shell"rundel32.exe 1") or is it its own command (rundel32.exe 1)
1.- You can't restart in MSDOS mode unless you have Windows 9X or Me.
2.- To restart from within a windows console you use restart. Restart can be also used from the DOS window in Windows 9X/Me or for the NTVDM in Windows NT/2K/XP, i.e. you can run it using "SHELL" from QB or any other MSDOS application.
3.- There's not such a restart command in pure MSDOS. To restart in MSDOS you just call to BIOS (forgot where).
Don't do it under Windows only in real DOS.

If i renember the reboot vector is on FFFF:0000

You can jump to FFFF:0000
Code:
DEF SEG = &HFFFF
CALL ABSOLUTE(0)
Or you can use
Code:
OUT &H64, &HFE

Joshy
You can restart in almost and version of DOS even with Win XP installed by creating a DOS 6.22, Win95 or 98 or Miilenium of XP DOS boot disk, and temporarily changing your CMOS setup to boot form a floppy with the hard dive as second boot. I have tried this successfully with them all, and was amused to see wonderful Win XP displays it is running Millennium MSDOS!

Although there is a proper way to create such a boot up disk under Windows perhaps under the ADD REMOVE PROGRAMS, if you are careful you should be able create any of these Boot disks using a DOS or Windows filemanger that displays all the hidden System files in the root directory and copying them over to a completely blank floppy. But make sure the files on the floppy appear in exactly the same order as on the hard drive, and take care not the remove the files from your hard drive

Gordon
Quote:in msdos, i think there is a "restart" command...not entirely sure...

you might find somthing useful here:
http://www.computerhope.com/msdos.htm

i think this is for Win98 MsDos (i believe every windows release has a different version of Dos....could be wrong)

oz~

Win 95/98 - MsDos 6
Win ME/2000 - MsDos 8(final version)
Win XP - Emulated Consdle
Close.

Windows 95 worked on top of MSDOS 6.22 but some stuff such as EDIT were new.

Windows 98 had more bits changed and improved (i.e. the kernel for example), some like to call it MSDOS 7.1 but this isn't official.

Windows NT, 2000 and XP bring a virtual machine, not an emulator. If it were an emulator it would be the best way to turn your Penitum IV into a 386 Big Grin
Pages: 1 2