|
誰知道如何讀出 CD 內的 BOOTIMG.BIN 的檔案?
zip文件解压后,可以用winimage解开啊!
里面有如下文件和目录:
bmp、dos tools 目录
autoexec.bat command.com、config.sys、io.sys msdos.sys.
autoexec.bat 文件内容:
@ECHO OFF
PATH=A:\TOOLS;A:\DOS
ID
IF ERRORLEVEL 1 OFF
REM --- W98TC nick-san Ver 1.01.98N ---
REM --- TOSCDROM.SYS Ver.3.21P ---
MBR /G1 >NUL
IF ERRORLEVEL 1 GOTO 2ND
:MENU
REM 暅尦偟傑偡偐丠
BMPVIEW A:\BMP\RECOVERY.BMP /X=140 /Y=160
CLK
CHOICE > NUL
IF ERRORLEVEL 2 GOTO CDERREND
BMPVIEW /XC A:\BMP\Y2.BMP /X=340 /Y=288
BMPVIEW A:\BMP\MES002.BMP /X=140 /Y=160
CLK
CHOICE > NUL
IF ERRORLEVEL 2 GOTO CDERREND
BMPVIEW A:\BMP\Y1.BMP /XC /X=340 /Y=288
MBR /S1:01 >NUL
:2ND
CDCKBOOT > NUL
IF ERRORLEVEL 1 SETBOOT 0 >NUL
MBR /P >NUL
IF ERRORLEVEL 11 GOTO FORMAT
IF ERRORLEVEL 10 GOTO FORMAT
IF ERRORLEVEL 7 GOTO FORMAT
IF ERRORLEVEL 6 GOTO FORMAT
IF ERRORLEVEL 1 GOTO CLEAR
GOTO FDISK
:CLEAR
MBR /! >NUL
CDCKBOOT > NUL
IF ERRORLEVEL 1 SETBOOT 4 >NUL
HARDBOOT
:FDISK
FDISK 1 /PRI:65535
IF ERRORLEVEL 1 GOTO FDISKERR
CDCKBOOT > NUL
IF ERRORLEVEL 1 SETBOOT 4 >NUL
HARDBOOT
:FORMAT
CLS
FORMAT C: /U /V:"" < A:\TOOLS\YENT
MBR /C1 >NUL
GOTO GO
:GO
SMARTDRV
MSCDEX /D:MSCD001 /M:10 >NUL
IF ERRORLEVEL 1 GOTO NO_CDDRV
:CHECKCD
CDCHECK D: > NUL
CDCHECK D: > NUL
IF ERRORLEVEL 2 GOTO NO_CDDRV
IF ERRORLEVEL 1 GOTO SET_CDROM
SET CDDRV=D:
GOTO CD_EXIST
:SET_CDROM
REM CD傪擖傟偰偔偩偝偄丅
BMPVIEW A:\BMP\SETCDROM.BMP
PAUSE > NUL
:CHECKCD2
CDCHECK D: > NUL
CDCHECK D: > NUL
IF ERRORLEVEL 2 GOTO NO_CDDRV
IF ERRORLEVEL 1 GOTO NOCDROM
SET CDDRV=T:
GOTO CD_EXIST
:CD_EXIST
IF NOT EXIST %CDDRV%\SETENV98.BAT GOTO BAD_CDROM
:RECOVERY
BMPVIEW A:\BMP\SETUP.BMP /X=136 /Y=160
CALL %CDDRV%\SETENV98.BAT
CD C:\
F3D %CDDRV%\%FILENAME% C: %F3DOPT% /P:20,18,40,1
IF ERRORLEVEL 1 GOTO F3D_NG
C:\WINDOWS\COMMAND\SYS C:\WINDOWS C: >NUL
LABEL C:%VOLLABEL%
:RECOVERY_COMPLETE
BMPVIEW A:\BMP\THEEND.BMP
SMARTDRV /C
rem --- CDX /E
:LOOP
PAUSE > NUL
GOTO LOOP
REM ================= ERROR ===============================
:BAD_CDROM
REM CD-ROM偑堘偄傑偡丅
BMPVIEW A:\BMP\BADCDROM.BMP /X=140 /Y=160
CLK
CHOICE > NUL
IF ERRORLEVEL 2 GOTO CDERREND
BMPVIEW A:\BMP\Y1.BMP /XC /X=340 /Y=288
GOTO CHECKCD2
:NOCDROM
REM CD-ROM傪擣幆偱偒傑偣傫丅
BMPVIEW A:\BMP\NOCDROM.BMP /X=140 /Y=160
CLK
CHOICE > NUL
IF ERRORLEVEL 2 GOTO CDERREND
BMPVIEW A:\BMP\Y1.BMP /XC /X=340 /Y=288
GOTO CHECKCD2
:NO_CDDRV
REM CD-ROM僪儔僀僽偑尒偮偐傝傑偣傫丅
BMPVIEW A:\BMP\NO_CDDRV.BMP
PAUSE > NUL
GOTO END
:F3D_NG
SMARTDRV /C
BMPVIEW A:\BMP\RECOVERR.BMP /X=96 /Y=168
CLK
CHOICE > NUL
IF ERRORLEVEL 2 GOTO R_ERREND
BMPVIEW A:\BMP\Y3.BMP /XC /X=392 /Y=272
BMPVIEW A:\BMP\REBOOT2.BMP
PAUSE > NUL
CDCKBOOT > NUL
IF ERRORLEVEL 1 SETBOOT 4 >NUL
HARDBOOT
:R_ERREND
BMPVIEW A:\BMP\N_PBTN.BMP /XC /X=464 /Y=272
GOTO END
:CDERREND
BMPVIEW A:\BMP\N1.BMP /XC /X=412 /Y=288
GOTO END
:FDISKERR
ECHO FDISK ERROR!
GOTO END
:END
SMARTDRV /C
OFF
config.sys
[MENU]
menudefault=NOTE24
menuitem=NOTE24,TOSHIBA 24X CD-ROM DRIVE
menuitem=TSCD0105,Multi Media Port Replicator
[COMMON]
DEVICE=A:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=A:\DOS\EMM386.EXE RAM NOEMS
DEVICE=A:\DOS\ANSI.SYS
FILES=40
DOS=HIGH,UMB
LASTDRIVE=Z
SWITCHES=/F
SHELL=A:\COMMAND.COM A:\ /P /E:2048
REM *** CD-ROM Driver ***
[TSCD0105]
DEVICE=A:\TOOLS\tscd0105.sys /D:MSCD001 /A
[NOTE24]
DEVICE=A:\TOOLS\TOSCDROM.SYS /D:MSCD001 /A
|
|