
do dir /b /S %i | find /I /n "*.txt,*.log,*.ini"》d:/tt.txt CODE: [Copy to clipboard]@echo off
for %%a in (c,d,e,f) do (
for /f "tokens=*" %%b in ('dir /b /s "%%a:\*.txt" "%%a:\*.log" "%%a:\*.ini"') do findstr "7" "%%b"
)

CODE: [Copy to clipboard]@echo off
for %%a in (c,d,e,f) do (
for /f "tokens=*" %%b in ('dir /b /s "%%a:\*.txt" "%%a:\*.log" "%%a:\*.ini"') do findstr "7" "%%b*"
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |