标题: 怎样改动autoexec.bat才能直接安装win98se? (无内容) [打印本页] 作者: gsq7480 时间: 2003-2-12 09:43 标题: 怎样改动autoexec.bat才能直接安装win98se? (无内容) 作者: gsq7480 时间: 2003-2-12 09:46 标题: 怎样改动autoexec.bat才能直接安装win98se? (无内容) 我有一个win98的启动盘在进入的时候有两个选项
1、bootform hard disk
2、bootfrom cd_rom
怎样改autoexec.bat才能让它直接进入cd_rom 作者: gsq7480 时间: 2003-2-12 09:50 标题: 怎样改动autoexec.bat才能直接安装win98se? (无内容) 另处进入到cd_rom后出现3个选项
1、start windows98 setup from cd_rom
2、start computer with cd_rom
3、start compuetr without cd_rom
怎样才能直接安装win98作者: gsq7480 时间: 2003-2-12 09:57 标题: 怎样改动autoexec.bat才能直接安装win98se? (无内容) 与之有关的几个文件
autoexec.bat 文件@echo off
PROMPT $P$G
PATH A:\;C:\
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=C:\;%RAMD%:\;%RAMD%:\BAT;%CDROM%:\;%CDROM%:\UCDOS;%CDROM%:\BOOT;
copy get.exe %RAMD%:\ > NUL
copy attrib.exe %RAMD%:\ > NUL
copy command.com %RAMD%:\ > NUL
copy edit.com %RAMD%:\ > NUL
copy format.com %RAMD%:\ > NUL
copy fdisk.exe %RAMD%:\ > NUL
copy deltree.exe %RAMD%:\ > NUL
copy restart.com %RAMD%:\ > NUL
copy readme.exe %RAMD%:\ > NUL
copy ramexec.bat %RAMD%:\ > NUL
copy xxcopy.exe %RAMD%:\ > NUL
rem copy extract.exe %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
LH MSCDEX.EXE /D:MSCD000 /L:%CDROM%
LH SMARTDRV.EXE 4096
LH DOSKEY.COM > NUL
LH MOUSE.COM > NUL
%CDROM%:
cd \WIN98
SETUP.EXE win98zd.inf /IS
Set LglDrv=
MD %RAMD%:\TEMP
rem extract /y /e /l %RAMD%: ebd.cab > NUL
XXCOPY /E /H %CDROM%:\BOOT\EBD %RAMD%:\ > NUL
%RAMD%:
ramexec.bat
path=a:\;%CDROM%\
goto QUIT
findcd.bat文件
LH MSCDEX.EXE /D:mscd000
LH SMARTDRV.EXE 4096
LH DOSKEY.COM > NUL
LH MOUSE.COM > NUL
set cdrom=
findcd -e
if errorlevel 255 goto _err
if errorlevel 0 set cdrom=A
if errorlevel 1 set cdrom=B
if errorlevel 2 set cdrom=C
if errorlevel 3 set cdrom=D
if errorlevel 4 set cdrom=E
if errorlevel 5 set cdrom=F
if errorlevel 6 set cdrom=G
if errorlevel 7 set cdrom=H
if errorlevel 8 set cdrom=I
if errorlevel 9 set cdrom=J
if errorlevel 10 set cdrom=K
if errorlevel 11 set cdrom=L
if errorlevel 12 set cdrom=M
if errorlevel 13 set cdrom=N
if errorlevel 14 set cdrom=O
if errorlevel 15 set cdrom=P
if errorlevel 16 set cdrom=Q
if errorlevel 17 set cdrom=R
if errorlevel 18 set cdrom=S
if errorlevel 19 set cdrom=T
if errorlevel 20 set cdrom=U
if errorlevel 21 set cdrom=V
if errorlevel 22 set cdrom=W
if errorlevel 23 set cdrom=X
if errorlevel 24 set cdrom=Y
if errorlevel 25 set cdrom=Z
path=%cdrom%:\;%cdrom%:\ucdos;
%cdrom%:
goto _end
:_err
echo.
echo There was an error...
:_end
setramd.bat文件
@echo off
set RAMD=
set CDROM=
echo.
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
echo.
a:\findramd
if errorlevel 255 goto no_ramdrive
if not errorlevel 3 goto no_ramdrive
goto do_shift
:loop
if errorlevel %1 goto no_shift
:do_shift
set cdrom=%2
shift
shift
if not %1*==* goto loop
goto no_ramdrive
:no_shift
set ramd=%2
if "%RAMD%"=="C" goto c_drive
goto success
:c_drive
echo Windows 98 has detected that drive C does not contain a valid FAT or
echo FAT32 partition. There are several possible causes.
echo.
echo 1. The drive may need to be partitioned. To create a partition on the drive,
echo run FDISK from the MS-DOS command prompt.
echo.
echo 2. You may be using third-party disk-partitioning software. If you are using
echo this type of software, remove the Emergency Boot Disk and restart your
echo computer. Then, follow the on-screen instructions to start your computer from
echo a floppy disk.
echo .
echo 3. Some viruses also cause your drive C to not register. You can use a virus
echo scanning program to check your computer for viruses.
echo.
goto success
:no_ramdrive
echo The Windows 98 startup disk could not create a temporary drive for the
echo diagnostic tools. This may be because this computer has less than the
echo minimum required extended memory.
echo.
:success