@echo off
rem bat 读取文件列表
rem 判断文件是否存在
if not exist files.txt (
echo files.txt file not exist
goto end
)
rem 读取文件,每次读取一行
for /f %%i in ('type files.txt') do (
echo %%i
)
:end
echo Press any key to continue
pause
@echo off
rem bat 读取文件列表
rem 判断文件是否存在
if not exist files.txt (
echo files.txt file not exist
goto end
)
rem 读取文件,每次读取一行
for /f %%i in ('type files.txt') do (
echo %%i
)
:end
echo Press any key to continue
pause