
CODE: [Copy to clipboard][ Last edited by gmy on 2006-1-11 at 13:40 ]@echo off
set drv=1
for %%i in (c d e f g h i j k l m n o p q r s t u v w) do if exist %%i:\boot.ini set drv=%%i
if %drv%==1 goto err
:ok
cls
echo OK! %drv%\boot.ini is found !
goto end
:err
cls
echo Sorry! boot.ini is not found!
goto end
:end
echo
echo
pause
CODE: [Copy to clipboard]@echo off
if "%1"=="" goto ok
cls
for %%i in (c d e f g h i j k l m n o p q r s t u v w) do if exist %%i:\boot.ini %0 %%i
:err
echo Sorry! boot.ini is not found!
goto end
:ok
echo OK! %1\boot.ini is found !
goto end
:end
echo
echo
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |