![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-18 09:47 |
47,814 topics / 349,907 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » Novice seeking help - Regarding DOS booting... |
| Printable Version 1,493 / 2 |
| Floor1 fdiskoo1 | Posted 2006-09-19 12:46 |
| 新手上路 Posts 2 Credits 8 | |
|
I am just a big rookie, purely a DOS illiterate.
I just want to boot to DOS and automatically run M.BAT (which is a command for GHOST automatic backup), and don't need any other functions and drivers! The following are the information of CONFIG.SYS and AUTOEXEC.BAT (hehe! It's not written by me, it's copied from others and randomly modified), but it can boot normally and automatically run M.BAT喔^_^ My question is: Which commands and information among them are redundant, that is, can be removed? DEVICE=CONFIG.EXE DEVICE=CONMENU.SYS REM COLOR= REM DEFAULT=A,0 REM CAPTION= REM CAPTION= REM CAPTION= REM CAPTION= REM ENDNOTE= REM ENDNOTE= REM ENDNOTE= REM CM0= A REM CM0=(1 DEVICE=DOS\HIMEM.SYS /TESTMEM:OFF /Q DEVICE=DOS\UMBPCI.SYS DEVICEHIGH=DOS\VIDE-CDD.SYS /D:IDE-CD01 REM CM0=)1 SHELL=COMMAND.COM /E:1024 /P /F DOS=HIGH,UMB,AUTO FCBSHIGH=4,0 FILESHIGH=30 BUFFERSHIGH=20,0 STACKSHIGH=9,256 LASTDRIVE=Z DEVICEHIGH=DOS\RAMDRIVE.SYS /E 4096 REM CM0= @ECHO OFF PROMPT $P$G SET EXPAND=YES SET DIRCMD=/OGN /4 PATH=A:\;A:\DOS IF %CM0%#==F# goto end IF %CM0%#==E# goto E set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15 set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C CALL SETRAMD.BAT %LglDrv% SET COMSPEC=A:\COMMAND.COM LH MSCDEX.EXE /D:IDE-CD01 /L:%CDROM% LH SMARTDRV.EXE 4096 LH CTMOUSE > NUL LH DOSKEY > NUL DOSLFN.COM /Z A:\DOS\CP936UNI.TBL >NUL Set LglDrv= FOR %%a in (A B C D) DO IF %CM0%#==%%a# goto %%a :A cls M.BAT goto end Hope to get an answer! Thanks... [ Last edited by fdiskoo1 on 2006-9-19 at 12:48 ] |
|
| Floor2 caocaocao | Posted 2006-09-20 07:38 |
| 初级用户 Posts 7 Credits 123 | |
|
The lines starting with rem in config.sys are removable (they are comments), and don't touch those in autoexec.bat.
|
|
| Floor3 bc12060101 | Posted 2006-09-20 09:17 |
| 银牌会员 Posts 712 Credits 1,455 | |
|
Hehe, if the program for GHOST automatic backup (whether it's backing up files or restoring files?) is on the hard disk, then 99% are almost useless characters. If the program (or file) is on the CD, then 90% of the characters are redundant.
If you post your M.bat, maybe it can be explained more clearly. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |