@echo off
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
goto success
:no_ramdrive
echo The Windows 98 SE 4.10.2222a startup disk could not create a temporary drive
echo for the diagnostic tools. This may be because this computer has less than the
echo minimum required extended memory.
echo.
:success
上面这段代码是在深山红叶工具箱里找出来的。
既然findramd.exe本身就可以自动的将盘符保存到%ramdrive%里了。为什么还要费那么大的劲,搞一个循环来判断呢??????
还有就是findramd的返回值都有哪些?????
Last edited by hankerer on 2006-11-5 at 10:09 AM ]