
CODE: [Copy to clipboard]执行结果tmp.txt是空的,跟踪发现ERRORLEVEL总是0.cd. >tmp.txt
for /r source\ %%a in (*) do (
echo %%~pa | find /i ".svn" >nul
if %ERRORLEVEL%==1 echo %%a >>tmp.txt
)
CODE: [Copy to clipboard]效率是低了for /f "delims=" %%i in ('dir/b/s') do (echo %%i|findstr /iv ".svn" >>temp.txt)
CODE: [Copy to clipboard]dir /s /b|findstr /i /v "\.svn" > tmp.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |