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 ]
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 ]

