@echo off
pushd %~dp0
rem 查找当前目录下的ISO文件(不含子目录),并生成列表菜单以供选择
rem 菜单显示满屏时暂停,空格键翻页,Q 结束翻页,详情查看more用法,不要翻页的话去掉“ | more”。
dir /a /b *.iso | find /n /v "" | more
set /p select=请选择:
set /a var=%select%-1
if not %var% equ 0 (set "skip=skip=%var% ") else set "skip="
for /f "%skip%delims=" %%a in ('dir /a /b *.iso ^| find /v ""') do (
echo "%%~fa"
goto end
)
@echo off
pushd %~dp0
rem 查找当前目录下的ISO文件(不含子目录),并生成列表菜单以供选择
rem 菜单显示满屏时暂停,空格键翻页,Q 结束翻页,详情查看more用法,不要翻页的话去掉“ | more”。
dir /a /b *.iso | find /n /v "" | more
set /p select=请选择:
set /a var=%select%-1
if not %var% equ 0 (set "skip=skip=%var% ") else set "skip="
for /f "%skip%delims=" %%a in ('dir /a /b *.iso ^| find /v ""') do (
imdisk -a -f "%%~fa" -m z:
goto end
)