第1个回答 2013-08-08
@echo off
@echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause 自己保存为.bat文件咯
第3个回答 推荐于2017-12-15
这个东西百度上面有很多,直接发你一个吧@ echo offecho 删除默认共享,请稍等........................
net share admin$ /del
net share c$ /delnet share e$ /del
net share f$ /del
net share g$ /del
net share h$ /del echo 正在清除系统垃圾文件,请稍等........................
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
del /f /s /q %windir%\temp\*.*
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"echo 清理回收站,请稍等........................
del c:\RECYCLER\*.* /f/s/q/adel e:\RECYCLER\*.* /f/s/q/a
del f:\RECYCLER\*.* /f/s/q/a
del g:\RECYCLER\*.* /f/s/q/a
del h:\RECYCLER\*.* /f/s/q/adel c:\Recycled\*.* /f/s/q/adel e:\Recycled\*.* /f/s/q/a
del f:\Recycled\*.* /f/s/q/a
del g:\Recycled\*.* /f/s/q/a
del h:\Recycled\*.* /f/s/q/a
echo 清理_desktop.ini,请稍等........................del e:\_desktop.ini /f/s/q/a
del f:\_desktop.ini /f/s/q/a
del g:\_desktop.ini /f/s/q/a
del h:\_desktop.ini /f/s/q/aecho 清除系统LJ完成!o(∩_∩)o ................
保存为BAT文件就行了本回答被网友采纳