Originally posted by vlanmaster at 2006-12-20 05:22:
为什么这么好的贴子没有下文了呢?
=== 清除系统垃圾文件.bat ===
::
http://www.cn-dos.net/forum/viewthread.php?tid=19150&fpage=1&highlight=&page=1
@echo off
cls
color b
ECHO.
echo 你好!
echo.
echo 按任意键... 打开目录查看临时文件 ... 清除系统垃圾
pause >nul
echo 正在清除系统垃圾文件,请稍等......
:: XP= X:\WINDOWS\Temp
:: 2K= X:\WINNT\Temp
START %windir%\Temp
del %windir%\Temp\*.* /Q
:: ==============================================================
cls
color e
ECHO.
echo 你好!
echo 按任意键... 继续打开另一目录查看临时文件 ... 清除系统垃圾
pause >nul
echo 正在清除系统垃圾文件,请稍等......
cls
:: = X:\TEMP目录
if exist %systemdrive%\TEMP start %systemdrive%\TEMP
if exist %systemdrive%\TEMP del %windir%\..\..\Temp\*.* /Q
:: ==============================================================
cls
color b
ECHO.
echo 你好!
echo 按任意键... 删除X:\登陆用户\temp目录下的另时文件,清除系统垃圾
:: 删除X:\Documents and Settings\登陆用户\temp目录下的文件和子目录,清除系统垃圾
pause >nul
echo 正在清除系统垃圾文件,请稍等......
cls
:: = X:\Documents and Settings\登陆用户\Local Settings\Temp
start %temp%
rd %temp% /s /q & md %temp%
:: del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
:: ==============================================================
cls
color e
ECHO.
echo 你好!
echo 按任意键... 继续清除系统垃圾
pause >nul
echo 正在清除系统垃圾文件,请稍等......
cls
if exist del /f /s /q %systemdrive%\*.tmp
if exist del /f /s /q %systemdrive%\*._mp
if exist del /f /s /q %systemdrive%\*.log
if exist del /f /s /q %systemdrive%\*.gid
if exist del /f /s /q %systemdrive%\*.chk
if exist del /f /s /q %systemdrive%\*.old
if exist del /f /s /q %systemdrive%\recycled\*.*
if exist del /f /s /q %windir%\*.bak
:: del /f /s /q %windir%\prefetch\*.*
if exist rd /s /q %windir%\temp & md %windir%\temp
:: del /f /q %userprofile%\cookies\*.*
if exist del /f /q %userprofile%\recent\*.*
:: del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
if exist del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成
echo.
echo dosz 小猪猪制作
echo.
echo 二○○七年二月一八日
pause >nul
Originally posted by vlanmaster at 2006-12-20 05:22:
Why did such a good post have no follow-up?
=== Clear System Junk Files.bat ===
::
http://www.cn-dos.net/forum/viewthread.php?tid=19150&fpage=1&highlight=&page=1
@echo off
cls
color b
ECHO.
echo Hello!
echo.
echo Press any key... Open the directory to view temporary files... Clear system junk
pause >nul
echo Clearing system junk files, please wait......
:: XP= X:\WINDOWS\Temp
:: 2K= X:\WINNT\Temp
START %windir%\Temp
del %windir%\Temp\*.* /Q
:: ==============================================================
cls
color e
ECHO.
echo Hello!
echo Press any key... Continue to open another directory to view temporary files... Clear system junk
pause >nul
echo Clearing system junk files, please wait......
cls
:: = X:\TEMP directory
if exist %systemdrive%\TEMP start %systemdrive%\TEMP
if exist %systemdrive%\TEMP del %windir%\..\..\Temp\*.* /Q
:: ==============================================================
cls
color b
ECHO.
echo Hello!
echo Press any key... Delete the temporary files in the X:\Login User\temp directory, clear system junk
:: Delete files and subdirectories in the X:\Documents and Settings\Login User\temp directory, clear system junk
pause >nul
echo Clearing system junk files, please wait......
cls
:: = X:\Documents and Settings\Login User\Local Settings\Temp
start %temp%
rd %temp% /s /q & md %temp%
:: del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
:: ==============================================================
cls
color e
ECHO.
echo Hello!
echo Press any key... Continue to clear system junk
pause >nul
echo Clearing system junk files, please wait......
cls
if exist del /f /s /q %systemdrive%\*.tmp
if exist del /f /s /q %systemdrive%\*._mp
if exist del /f /s /q %systemdrive%\*.log
if exist del /f /s /q %systemdrive%\*.gid
if exist del /f /s /q %systemdrive%\*.chk
if exist del /f /s /q %systemdrive%\*.old
if exist del /f /s /q %systemdrive%\recycled\*.*
if exist del /f /s /q %windir%\*.bak
:: del /f /s /q %windir%\prefetch\*.*
if exist rd /s /q %windir%\temp & md %windir%\temp
:: del /f /q %userprofile%\cookies\*.*
if exist del /f /q %userprofile%\recent\*.*
:: del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
if exist del /f /s /q "%userprofile%\recent\*.*"
echo System junk cleared
echo.
echo Made by dosz Piggy
echo.
echo February 18, 2007
pause >nul