

| Quote: | |
|
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%a in ('dir /s/b/a-d a:\*.bat') do (
set /a "n+=1"
set "fairy!n!=%%a"
echo !n! "%%a"
)
:again
set "input=0"
echo.&echo 回车直接退出,或输入文件序号,回车运行
set /p input=请选择:
if /i "%input%"=="0" goto :eof
start "" "!fairy%input%!"
goto :again
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |