找尋檔案
forfiles /p c:\ /S /M *.eml /c "cmd /c if @isdir==FALSE echo @PATH"
刪除檔案
forfiles /p c:\ /S /M *.eml /c "cmd /c echo deleting @file … && del /f @path"
請自行修改紅色的部分,第一個是路徑、第二個是檔名
由於刪除不可逆,所以使用前請先確認列出來的檔案是否都是要刪的
Read more...
找尋檔案
forfiles /p c:\ /S /M *.eml /c "cmd /c if @isdir==FALSE echo @PATH"
刪除檔案
forfiles /p c:\ /S /M *.eml /c "cmd /c echo deleting @file … && del /f @path"
請自行修改紅色的部分,第一個是路徑、第二個是檔名
由於刪除不可逆,所以使用前請先確認列出來的檔案是否都是要刪的
Read more...