根据当前目录下的文件生成网址列表的bat

2019-09-19 06:47:01王振洲

pushd %cd%
cd /d "%input%">nul 2>nul || exit
set cur_dir=%cd%
popd
for /f "delims=" %%i in ('dir /b /a-d /s "%input%"') do echo %%~nxi>>list.txt
if not exist list.txt goto no_file
start list.txt
exit

:no_file
cls
echo %cur_dir% 文件夹下没有单独的文件
pause


易采站长站原创文章,请注明出处 //www.jb51.net/article/37038.htm
相关文章 大家在看