bat shell删除目录下文件

@Echo Off 
set str_type=*.pch *.manifest *.pdb *.obj *.idb *.suo *.ncb *.aps *.ilk *.dep *.user *.sbr *.ib_tag
dir %str_type% /a /b /s >> list.txt 
del /f /s /ah %str_type%
dir /s/n|findstr /e list.txt >> list.txt 
pause

你可能感兴趣的:(bat shell删除目录下文件)