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-08-12 22:21
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Experts, please help me take a look at these two files: config and autoexec View 837 Replies 4
Original Poster Posted 2003-08-01 00:00 ·  中国 广东 肇庆 电信
初级用户
★★
Credits 286
Posts 64
Joined 2003-07-24 00:00
23-year member
UID 7394
Gender Male
Status Offline
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!!!!
Floor 2 Posted 2003-08-04 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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...
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-08-04 00:00 ·  中国 山东 淄博 联通
初级用户
Credits 105
Posts 1
Joined 2003-08-04 00:00
23-year member
UID 8006
Gender Female
Status Offline
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.
Floor 4 Posted 2003-08-04 00:00 ·  中国 香港
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
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
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 5 Posted 2003-08-04 00:00 ·  中国 广东 肇庆 电信
初级用户
★★
Credits 286
Posts 64
Joined 2003-07-24 00:00
23-year member
UID 7394
Gender Male
Status Offline
I learned something again, thanks to the experts above!
Forum Jump: