在cmd中运行了这么一段命令
for /f %i in ('dir/s/-d *.txt') do type %~fi>d:\pichuli.txt
刷了一版的"系统无法找到指定文件"
for /f %i in ('dir/s/-d *.txt') do echo %~fi
又显示了一版的正确的完整路径
后来想想用截取字符过滤
for /f %i in ('dir/s/-d') do if %%i:~-3%==txt type %i>d:\pichuli.txt
显示的是%路径名+:~-3%==txx type 路径名
也不像是变量延迟的问题?