|
本帖最后由 cutemmzlp 于 2013-7-16 18:36 编辑
主要是ERROR这一块
上述两个 if stop和这个erro块
执行的条件或者逻辑?
谢谢大牛,我很菜的,才折腾,百度和谷歌,都没搞到,为什么
何种情况,才会跳到error这一块运行?
下面是完整批处理内容
@ECHO OFF
SET DIRCMD=/O:N
IF "%config%"=="XMSDS" GOTO XMS
IF "%config%"=="SHSDR" GOTO SHS
:XMS
cls
echo XMSDSK is Loading...please wait...
echo Please choice "SHSURDRV mode" if stop!
xmsdsk.exe 25000 x: /y >nul
goto cpy
:SHS
cls
echo SHSURDRV is Loading...please wait...
echo Please choice "XMSDSK mode" if stop!
SHSURDRV.EXE /D:25000K:D512:$RAM-DRIVE,X /QQ
:cpy
SET ramdrive=x:
copy command.com %ramdrive%\ >nul
path=%ramdrive%\
set comspec=%ramdrive%\command.com
: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 >%ramdrive%\vol.txt
copy tools.ex_ %ramdrive%\tools.arj >nul
copy arj.exe %ramdrive%\ >nul
%ramdrive%
cd\
arj x -y -gdoshome tools.arj >nul
del tools.arj >nul
cls
usb-hdd.bat
:QUIT
|
|