中国DOS联盟论坛

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-12 21:36
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Experts, please help me take a look at these two files: config and autoexec
Printable Version  836 / 4
Floor1 sensen Posted 2003-08-01 00:00
初级用户 Posts 64 Credits 286
config.sys:


menuitem=SETUP_CD, Start Windows 98 Second Edition Setup from CD-ROM.
menuitem=CD, Start computer with CD-ROM support.
menuitem=NOCD, Start computer without CD-ROM support.
menudefault=SETUP_CD,30
menucolor=7,0


device=himem.sys /testmemff
device=oakcdrom.sys /Demcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /Demcd001


device=himem.sys /testmemff
device=oakcdrom.sys /Demcd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /Demcd001


device=himem.sys /testmemff


files=60
buffers=20
dos=high,umb
devicehigh=ramdrive.sys /E 4096
stacks=9,256
lastdrive=z

================================================================================

autoexec.bat:

@ECHO OFF
PROMPT $P$G
set temp=c:\
set tmp=c:\

SET EXPAND=YES
SET DIRCMD=/O:N
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%
path=%RAMD%:\;%CDROM%:\;A:\;C:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com

IF "%config%"=="NOCD" GOTO QUIT
LH MSCDEX.EXE /Demcd001 /L
LH SMARTDRV.EXE
LH DOSKEY
LH MOUSE

echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT

:AUTOSETUP
set CDROM=FOO23
FINDCD.EXE
if "%CDROM%"=="FOO23" goto NOCDROM
path=a:\;%CDROM%\
%CDROM%
cd \WIN98
echo.
OEMSETUP.EXE /K "/IE /NF"
goto QUIT

:NOCDROM
echo.
echo The Windows 98 Second Edition Setup files were not found.
echo.

:QUIT


===================================================================

Things I don't understand:
1: Why can it use upper memory even without loading emm386?

2:
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /Demcd001
What are these things?

3:
set temp=c:\
set tmp=c:\

SET EXPAND=YES
SET DIRCMD=/O:N
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 CDROM=FOO23
FINDCD.EXE
if "%CDROM%"=="FOO23" goto NOCDROM
I can't understand these statements.

===================================

What I want to modify:
1: Can I add emm386.
2: Use findcd.exe and findramd.exe to locate the drive letters of the CD-ROM and RAM drive. The situation with multiple CD-ROM drives has to be considered.
3: Choose the best programs to use, for example, use VIDE-CDD.SYS for the CD-ROM driver, CTMOUSE.EXE for the mouse driver, DOSLFN.COM for the long filename driver, etc.
Experts please help me, many thanks!!!!
Floor2 Wengier Posted 2003-08-04 00:00
系统支持 Posts 10,521 Credits 27,736
This should be the DOS boot disk that comes with Win98... its features are too limited, and it's also very hard to modify (because there is too much that needs changing). You might as well just download a fairly good DOS boot disk from the “DOS Boot Disk” section and modify that instead...
Floor3 小白兔 Posted 2003-08-04 00:00
初级用户 Posts 1 Credits 105
1. If 1.EMM386.EXE is not loaded, the LH command can still be used, but it has no real meaning, same as not using it.
2. Those commands are from the Win98 boot disk, used to test the machine and install the CD-ROM driver.
3. SET TEMP and SET TMP specify where junk files are stored.
SET EXPAND=YES 'specifies that compressed files can be expanded, meaning those whose extension ends with an "_"
SET DIRCMD=/O:N 'specifies the default parameters of the DIR command, meaning sorting in alphabetical order by filename.
Floor4 Roy Posted 2003-08-04 00:00
管理员 Posts 1,633 Credits 4,869
The following is quoted from sensen's post on 2003-8-1 19:43:25:
Things I don't understand:
1: Why can it use upper memory even without loading emm386?

It should be HMA..... as long as HIMEM.SYS is loaded, HMA can be used

2:
device=btdosm.sys 
device=flashpt.sys
device=btcdrom.sys /Demcd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /Demcd001
What are these things?

They load APSI drivers and SCSI drivers
Floor5 sensen Posted 2003-08-04 00:00
初级用户 Posts 64 Credits 286
I learned something again, thanks to the experts above!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023