10-25-2005, 05:01 AM
Pages: 1 2
10-25-2005, 05:12 AM
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:
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)
10-25-2005, 05:15 AM
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~
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~
10-25-2005, 05:15 AM
so are you saying i do a shell command (shell"rundel32.exe 1") or is it its own command (rundel32.exe 1)
10-25-2005, 01:20 PM
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).
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).
10-25-2005, 01:35 PM
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
Or you can use
Joshy
If i renember the reboot vector is on FFFF:0000
You can jump to FFFF:0000
Code:
DEF SEG = &HFFFF
CALL ABSOLUTE(0)
Code:
OUT &H64, &HFE
Joshy
10-26-2005, 01:10 AM
From the FAQ: http://faq.qbasicnews.com/?blast=RebootPc
11-13-2005, 04:24 PM
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
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
11-13-2005, 08:46 PM
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
11-13-2005, 09:51 PM
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
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
Pages: 1 2