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