@echo off
set EXPAND=YES
a:\xmsdsk 2092 /y /t >NUL
cls
findramd >nul
SET PATH=%RAMDRIVE%\;A:\
if not exist %RAMDRIVE% goto er
:er
echo The "RAM Drive" is not exist.
echo The system has to be shutdown!
call Shut.BAT
goto quit
上面的批处理的IF语句老是执行有问题,明明存在RAM Drive,它却老是检测出不存在!
请问应该如何改?
set EXPAND=YES
a:\xmsdsk 2092 /y /t >NUL
cls
findramd >nul
SET PATH=%RAMDRIVE%\;A:\
if not exist %RAMDRIVE% goto er
:er
echo The "RAM Drive" is not exist.
echo The system has to be shutdown!
call Shut.BAT
goto quit
上面的批处理的IF语句老是执行有问题,明明存在RAM Drive,它却老是检测出不存在!
请问应该如何改?

