home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / apps / 4590 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.7 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uwm.edu!psuvax1!psuvm!fwr100
  2. From: FWR100@psuvm.psu.edu
  3. Newsgroups: comp.os.msdos.apps
  4. Subject: Re: reboot w/dos5 emm etc
  5. Message-ID: <92244.210122FWR100@psuvm.psu.edu>
  6. Date: 1 Sep 92 01:01:22 GMT
  7. References: <1992Aug31.210755.27192@scott.skidmore.edu>
  8. Distribution: na
  9. Organization: Penn State University
  10. Lines: 29
  11.  
  12. In article <1992Aug31.210755.27192@scott.skidmore.edu>, pvonk@scott.skidmore.edu
  13. (Pierre VonKaenel) says:
  14. >
  15. >I need a .exe or .com file that can be used in a batch file to reboot
  16. >the system.  I've downloaded the reboot files at simtel20, but they
  17. >don't seem to work with DOS 5 and EMM.  (It does eventually reboot,
  18. >but somewhere before, I must respond to an error message - I think it
  19. >may be from EMM.)  Anyone have or know of such a utility that does
  20. >work under these circumstances?
  21.  
  22. Well, here's a simple .bat file that will work - all you need is DOS DEBUG.
  23.  
  24. Create this batch file, or add these lines to yours:
  25. SMARTDRV /C                   (Only if you have Windows 3.1 and SmartDrive)
  26. DEBUG < REBOOT.DBG > NUL
  27.  
  28. And, create this file, named REBOOT.DBG:
  29. e 0040:0072 34 12       (This is for "warm boot".  Leave out for "cold" boot)
  30. g=ffff:0000
  31.  
  32. This works for me, with MS-DOS 5.0 and EMM386 from DOS 5 or Windows 3.1.
  33. The "SMARTDRV" line in the batch file makes sure your write-back cache is
  34. emptied before rebooting.  If you don't use SmartDrive you can leave this out.
  35. The e 0040...  line causes the computer to skip the usual self test routines -
  36. this acts like a Ctrl-Alt-Del.  Leave this line out and you'll get a cold boot
  37. similar to hitting the reset button (This takes longer and is unnecessary).
  38.  
  39. -Frank Racis
  40. -FWR100@psuvm.psu.edu
  41.