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
sguerke@brahms.udel.edu (Stephen Guerke) (03/17/91)
In article <4725@gumby.Altos.COM> jerry@altos.COM (Jerry Gardner) 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. > The way I solve this problem (without spending money) is to use a small program called reset.com. On my machine I have three configurations that I use frequently. A DOS menu, Windows 3.0 and a setup with a 1.5Mb ramdrive. The DOS menu uses a diskcashe (Norton's), the Windows config. uses Smartdrive. So the three config.sys files are different as are the Autoexec.bat files (and some of the other batch files). On my system (a 286 w/ 3Mb RAM) I have created a subdirectory called SYSTEM, in this subdirectory I store three sets of config.sys and autoexec.bat files, named config.dos, config.win and config.ram (you get the idea :-)). I have three batch files in my root directory called startdos.bat, startwin.bat and startram.bat. These files each look something like this: REM REBOOTS TO DOS ENVIRONMENT COPY C:\SYSTEM\CONFIG.DOS C:\CONFIG.SYS COPY C:\SYSTEM\AUTOEXEC.DOS C:\AUTOEXEC.BAT COPY (OTHER FILES THAT NEED TO BE CHANGED IF ANY) RESET You can create a small program called reset.com by using DEBUG and the following script: (line numbers are not typed) Using an ASCII editor (EDLIN or VDE or Windows NOTEPAD) type the following and save it as RESET.SCR. 1: a 100 2: mov ax,40 3: mov ds,ax 4: mov ax,1234 5: mov [0072],ax 6: jmp f000:e05b 7: 8: r cx 9: 10 10: n reset.com 11: w 12: q once you have saved this script, go to the dos prompt (being sure that the subdirectory containing debug is in your path) and type the following: C:\>debug < reset.scr (be sure you have the < pointing in the proper direction, and be sure that you have typed the .scr file exactly as shown (minus line numbers), and be sure that anything important is saved, if you made a typing error you can crash your system and will have to reboot.) If everything works correctly you will have a new program called reset.com that does the ALT CTRL DEL for you in a batch file. Its not as nice or elegant as useing something like DR.DOS 5.0 (an excellent alternative to MSDOS) but it is a lot cheaper. Steve ======================================================================== Stephen Guerke, Coord. Comp. Resources sguerke@brahms.udel.edu University of Delaware, Parallel Program stephen.guerke@mvs.udel.edu
mcastle@mcs213e.cs.umr.edu (Mike Castle {Nexus}) (03/17/91)
In article <19707@brahms.udel.edu> sguerke@brahms.udel.edu (Stephen Guerke) writes: > >REM REBOOTS TO DOS ENVIRONMENT >COPY C:\SYSTEM\CONFIG.DOS C:\CONFIG.SYS >COPY C:\SYSTEM\AUTOEXEC.DOS C:\AUTOEXEC.BAT >COPY (OTHER FILES THAT NEED TO BE CHANGED IF ANY) >RESET Word of warning: If you use a caching disk-writes as well as disk reads, be sure you include a line to flush the cache to disk before the RESET. Don't know how long it took me to figure that one out. Also played havoc with running OPTIMIZE with QEMM too.... :- -- Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred) | XEDIT: Emacs mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| on a REAL Life is like a clock: You can work constantly, and be right | operating all the time, or not work at all, and be right twice a day. | system. :->