@ECHO OFF
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
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem Clean up environment variables
rem set CDROM=
rem set LglDrv=
%CDROM%:
Ghost.exe -clone,mode=pload,src=system.GHO:1,dst=1:1 -sure -rb 作者: 林中笑 时间: 2006-2-18 19:59 标题: 各位大虾,这样的bat文件是不是有问题? 不懂,顶一下,关注此贴作者: xusen 时间: 2006-2-20 20:08 标题: 各位大虾,这样的bat文件是不是有问题? [这个贴子最后由xusen在 2006/02/20 08:10pm 第 1 次编辑]
CONFIG.SYS 加入一行内容
------------
[COMMON]
SHELL=COMMAND.COM /P /F /E:800
------------
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem set CDROM=
set LglDrv=
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\system.gho set gho=%%a:\system.gho
if not %gho%#==# Ghost.exe -clone,mode=pload,src=%GHO%:1,dst=1:1 -sure -rb 作者: chenall 时间: 2006-2-20 20:14 标题: 各位大虾,这样的bat文件是不是有问题? 使用findcd来解决,可以自己找一下findcd的用法.