
CODE: [Copy to clipboard]for %%A in (c d e f g h) do (if exist "%%A:\FreePC.exe" (set disk=%%A:))
if not defined disk goto :error
CODE: [Copy to clipboard]@echo off
for %%A in (c d e f g h) do (if exist "%%A:\FreePC.exe" (set disk=%%A:))
if not defined disk goto :error
echo disk:%disk%
pause&goto :eof
:error
echo Not found!
pause&goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |