
[已解決]下面的bat批處理如何用for命令將del和rd命令精簡下謝謝最后由 ygqiang 于 -11-30 10:13[已解決]下面的bat批處理,如何用for命令,將del和rd命令,精簡下?謝謝
nclick="copycode($('code0'));">復制代碼
- echo 本地磁盤:
- for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
- fsutil fsinfo drivetype %%a: | find 固定>nul && (echo %%a) && (
- del /f /s /q /a %%a:Thumbs.db >nul 2>nul
- del /f /s /q /a %%a:desktop.ini >nul 2>nul
- del /f /s /q /a %%a:RECYCLER*.* >nul 2>nul
- rd /s /q %%a:baidu player >nul 2>nul
- rd /s /q %%a:FavoriteVideo >nul 2>nul
- rd /s /q %%a:FunshionMedia >nul 2>nul
- rd /s /q %%a:KanKan >nul 2>nul
- rd /s /q %%a:PPDownload >nul 2>nul
- rd /s /q %%a:PPS.tv >nul 2>nul
- rd /s /q %%a:PPSDownload >nul 2>nul
- rd /s /q %%a:ppsvodcache >nul 2>nul
- rd /s /q %%a:QMDownload >nul 2>nul
- rd /s /q %%a:StormMedia >nul 2>nul
- rd /s /q %%a:Youku Files >nul 2>nul)
- )

