SET DIRCMD=/O:N
cls
xmsdsk 12000 x: /y >nul
copy command.com x:\ >nul
path=x:\
set comspec=x:\command.com
set ghox=ghos
:ERROR
IF EXIST tools.ex_ GOTO EXT
echo ERROR: tools.ex_ not found.
echo SORRY: Be will not use the disk.
echo.
GOTO QUIT
:EXT
cls
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
vol >x:\vol.txt
copy tools.ex_ x:\tools.arj >nul
copy arj.exe x:\ >nul
x:
cd\
SET DIRCMD=/O:N 设置变量DIRCMD值为/O:N
cls 清屏
xmsdsk 12000 x: /y >nul 产生大小为12000的虚拟盘X
copy command.com x:\ >nul 复制COMMAND.COM到虚拟盘X
path=x:\ 设置路径变量PATH为X:\
set comspec=x:\command.com 设置命令解释器变量COMSPEC为X:\COMMAND.COM
set ghox=ghos 设置变量GHOX为GHOS
:ERROR ERROR标号
IF EXIST tools.ex_ GOTO EXT 如果存在文件TOOLS.EX_则跳到标号EXT执行
echo ERROR: tools.ex_ not found. 不存在则显示错误:TOOLS.EX_文件不存在
echo SORRY: Be will not use the disk. 继续显示对不起:无法使用该盘
echo. 显示空行
GOTO QUIT 跳转到标号QUIT
:EXT EXT标号
cls 清屏
echo Preparing to start your computer. 显示准备启动电脑
echo This may take a few minutes. Please wait... 显示需要一点时间,请等待。。。
vol >x:\vol.txt 用显示卷标命令将结果转存到文件vol.txt中(不显示在显示器)
copy tools.ex_ x:\tools.arj >nul 复制文件tools.ex_到X盘重名为tools.arj
copy arj.exe x:\ >nul 复制arj.exe到X盘
x: 转到X盘
cd\ 进到根目录