China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-30 16:33
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Novice seeking help - Regarding DOS booting... View 1,442 Replies 2
Original Poster Posted 2006-09-19 12:46 ·  中国 海南 电信
新手上路
Credits 8
Posts 2
Joined 2006-09-17 00:49
19-year member
UID 62810
Gender Male
Status Offline
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 ]
Floor 2 Posted 2006-09-20 07:38 ·  中国 浙江 绍兴 电信
初级用户
Credits 123
Posts 7
Joined 2003-08-30 00:00
22-year member
UID 9192
Gender Male
Status Offline
The lines starting with rem in config.sys are removable (they are comments), and don't touch those in autoexec.bat.
Floor 3 Posted 2006-09-20 09:17 ·  中国 河南 洛阳 电信
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
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.
Forum Jump: