[comp.os.msdos.misc] automatic boot pc from batch file

halpern@casbah.acns.nwu.edu (David Halpern) (02/18/91)

Many times I have to reboot my computer because I change my config.sys
file in order to include a particular device driver for communications
or graphics software.  There is not base memory to run the graphics
software if I load both communications and graphics device drivers.
I would like to have a batch file that would test for the presence of
the appropriate device drivers, change my config.sys if required and
reboot my computer without having to press CTRL-ALT-DEL.

I'm sure that many of you have had this sort of problem in loading too
many devices in the config.sys file and then not having enough base memory
to run applications.

Any suggestions would be greatly appreciated.

----------------------------------------------------------------------------
David Halpern
Telephone: (708) 491-4308
Office Location: TECH B426 (Center for multiphase flow)
Address:  Biomedical Engineering Department
          Northwestern University
	  Evanston IL 60208

e-mail:halpern@casbah.acns.nwu.edu

ts@uwasa.fi (Timo Salmi) (02/18/91)

In article <3629@casbah.acns.nwu.edu> halpern@casbah.acns.nwu.edu (David Halpern) writes:
:
>reboot my computer without having to press CTRL-ALT-DEL.
:

Try warmboot.exe:

The wares are available by anonymous ftp from garbo.uwasa.fi, Vaasa,
Finland, 128.214.12.37, or by using our mail server (use the latter
if, and only if you don't have anonymous ftp).  If you are not
familiar with anonymous ftp or mail servers, I am prepared to send
prerecorded instructions on request.  (If you don't get the
instructions from me within a few days, it will mean that your email
address cannot be reached by a simple email reply, and you wouldn't
be able to utilize the mail server anyway.)

TSUTLD18.ARC    Fourth set of Utilities, T.Salmi
Filename        Comment                             Date      Time  
--------        --------------------------------    ----      ----  
ADJCURS.BAT     Batch shell for adjusting cursor  09-07-90  10:20:22
BIGCURS.EXE     Make the cursor better visible    12-05-89  14:45:36
BIGNCURS.EXE    NonResident temporary big cursor  11-29-89  16:17:26
CAPS.EXE        Get/set keyboard toggles          07-19-90  14:22:44
FILES.EXE       Summary of your different files   09-08-90  13:07:08
KEYRATE.EXE     Set keyboard repeat rate & delay  07-21-90  21:59:44
POPSCR.EXE      Pop screen from image file        09-09-90  11:44:56
PSK.EXE         Dis/enable the PrintScreen key    06-16-90  08:47:50
PUSHSCR.EXE     Push screen to image file         09-09-90  11:44:52
SETPRT.EXE      Set PrintScreen retry times       07-10-90  12:07:20
SWITCHAR.EXE    Makes Unix freaks feel at home    11-26-89  21:25:32
TODAY.EXE       Scan disk for files made today    07-19-90  15:07:40
TSPROG.INF      List of PD programs from T.Salmi  04-03-90  17:37:40
TSUTLD.INF      Document                          09-09-90  11:46:34
TSUTLD.NWS      News announcements about tsutld   09-09-90  11:10:48
VAASA.INF       Info: Finland, Vaasa, U of Vaasa  02-02-90  11:52:54
WARMBOOT.EXE    Reboot without memory tests       09-08-90  15:28:40
----            ------             ------  -----
0017            136268             100933   26%

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun

risto@tuura.UUCP (Risto Lankinen) (02/19/91)

halpern@casbah.acns.nwu.edu (David Halpern) writes:

>I would like to have a batch file that would test for the presence of
>the appropriate device drivers, change my config.sys if required and
>reboot my computer without having to press CTRL-ALT-DEL.

Hi!

Put the following into the end of the .BAT that does the reconfiguration:

   ECHO G=FFFF:0 | DEBUG

Terveisin: Risto Lankinen
-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              2   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME!  Now working on 2 +1 *
replies: risto@yj.data.nokia.fi     ***************************************

oper@vms.macc.wisc.edu (MACC Operator) (03/03/91)

In article <3629@casbah.acns.nwu.edu>, halpern@casbah.acns.nwu.edu (David Halpern) writes...

> 
> 
>Many times I have to reboot my computer because I change my config.sys
>file in order to include a particular device driver for communications
>or graphics software.  There is not base memory to run the graphics
>software if I load both communications and graphics device drivers.
>I would like to have a batch file that would test for the presence of
>the appropriate device drivers, change my config.sys if required and
>reboot my computer without having to press CTRL-ALT-DEL.
> 
>I'm sure that many of you have had this sort of problem in loading too
>many devices in the config.sys file and then not having enough base memory
>to run applications.
> 
>Any suggestions would be greatly appreciated.
> 
>----------------------------------------------------------------------------
>David Halpern
>Telephone: (708) 491-4308
>Office Location: TECH B426 (Center for multiphase flow)
>Address:  Biomedical Engineering Department
>          Northwestern University
>	  Evanston IL 60208
> 
>e-mail:halpern@casbah.acns.nwu.edu


I use a program called mboot.com from PC Magazine that I downloaded from 
Compuserve. It allows you to choose from up to four different 
configurations and then boots the one you choose. I use it on my 486 to 
choose between a windows or dos session and it has worked fine so far 
(about 1 week). The program is described in detail in a recent issue of 
PC Magazine (the one about Windows 3.0).  Good Luck!

gregg@macc.wisc.edu

userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) (03/07/91)

In article <1991Mar2.233927.20706@macc.wisc.edu>, oper@vms.macc.wisc.edu (MACC Operator) writes:
>In article <3629@casbah.acns.nwu.edu>, halpern@casbah.acns.nwu.edu (David Halpern) writes...
> 
>> 
>> 
>>Many times I have to reboot my computer because I change my config.sys
>>file in order to include a particular device driver for communications
>>or graphics software.  There is not base memory to run the graphics
>>software if I load both communications and graphics device drivers.
>>I would like to have a batch file that would test for the presence of
>>the appropriate device drivers, change my config.sys if required and
>>reboot my computer without having to press CTRL-ALT-DEL.
>> 
If you want to do the above with a batch file, you can
have it reboot your PC by running the executable .COM file
generated with the following DEBUG script file:
 
Filename: REBOOT.SCR
Contents:
            A
            mov ax,40
            mov ds,ax
            mov ax,1234
            mov {72},ax
            jmp ffff:0000
 
            rcx
            10
            n reboot.com
            w
            q
 
To generate REBOOT.COM, type: 'debug <reboot.scr' at the
DOS prompt. When run by your batch file, this program will
perform a warm boot; to make it a cold boot, change the 1234
to something else. The first version of this that I used had
a jump to F000:E05B instead of FFFF:0000, and it worked
equally well on a variety of PC's.
 
Testing for the presence of device drivers will be a bit 
trickier. One way would be to read CONFIG.SYS (obviously
requires a program, not just a batch file), but that would
miss drivers loaded as TSR's, such as ANSI.COM. Another 
would be to trace through the PCP's of all drivers and
TSR's loaded. A better way would be to find a utility
program that tests for a particular driver and returns an
appropriate ERRORLEVEL. 
 
Changing the CONFIG.SYS file is easy; just have all the possible
ones there under different names, and copy the one you need to
CONFIG.SYS. Or rebuild CONFIG.SYS from scratch with lines
such as:
 
echo device=c:"drivers"mouse.sys > "config.sys
 
 
 -------------------+-------------------------------------------
 Al Dunbar          | 
 Edmonton, Alberta  |  Disclaimer: "I disclaim disclaimers"
 CANADA             |                              
 -------------------+-------------------------------------------

userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) (03/14/91)

In article <RN.219@mts.ucs.UAlberta.CA>, userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) writes:
>            mov ax,1234
>            mov {72},ax
>            jmp ffff:0000
 
... forgot to mention to use square brackets instead of
the curly braces in 'mov {72},ax'. Our mainframe does
not let us use square brackets for some silly reason.
 
 -------------------+-------------------------------------------
 Al Dunbar          | 
 Edmonton, Alberta  |  Disclaimer: "I disclaim disclaimers"
 CANADA             |                              
 -------------------+-------------------------------------------

jerry@gumby.Altos.COM (Jerry Gardner) (03/16/91)

In article <3629@casbah.acns.nwu.edu>, halpern@casbah.acns.nwu.edu (David Halpern) writes...

>Many times I have to reboot my computer because I change my config.sys
>file in order to include a particular device driver for communications
>or graphics software.  There is not base memory to run the graphics
>software if I load both communications and graphics device drivers.
>I would like to have a batch file that would test for the presence of
>the appropriate device drivers, change my config.sys if required and
>reboot my computer without having to press CTRL-ALT-DEL.


Get DR DOS 5.0.  This is an MS-DOS compatible OS that allows you to
selectively load device drivers from config.sys.  Simply prefix  a '?'
character to a "device=" line in config.sys and DR DOS will ask you
if you want to load the driver at boot time.  For example:

?DEVICE=ansi.sys

will cause DR DOS to prompt with:

DEVICE=ANSI.SYS (Y/N) ?



-- 
Jerry Gardner, NJ6A					Altos Computer Systems
UUCP: {sun|pyramid|sco|amdahl|uunet}!altos!jerry	2641 Orchard Parkway
Internet: jerry@altos.com				San Jose, CA  95134
Help stamp out vi in our lifetime.                      (408) 432-6200