xp电脑清理系统垃圾文件解决方法1
xp电脑清理系统垃圾文件解决方法1

  xp电脑清理系统垃圾文件解决方法1  使用bat命令
  开始——程序——附件——记事本,打开电脑记事本。
  2@echo off
  color 3b
  title 清除xp系统垃圾工具
  echo 正在清除系统垃圾文件,请稍等......
  rem 提示部份软件卸载需log 文件,清理掉后就无法卸载
  if exist "%windir%\*.log" del /f /s /q "%windir%\*.log" 2>nul
  if exist "%systemdrive%\*.log" del /f /s /q "%systemdrive%\*.log" 2>nul
  if exist "%systemdrive%\*.tmp" del /f /s /q "%systemdrive%\*.tmp" 2>nul
  if exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nul
  if exist "%systemdrive%\*.gid" del /f /s /q "%systemdrive%\*.gid" 2>nul
  if exist "%systemdrive%\*.chk" del /f /s /q "%systemdrive%\*.chk" 2>nul
  if exist "%systemdrive%\*.old" del /f /s /q "%systemdrive%\*.old" 2>nul
  if exist "%systemdrive%\*.ftg" del /f /s /q "%systemdrive%\*.ftg" 2>nul
  if exist "%systemdrive%\*.fts" del /f /s /q "%systemdrive%\*.fts" 2>nul
  if exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nul
  if exist "%systemdrive%\*.syd" del /f /s /q "%systemdrive%\*.syd" 2>nul
  if exist "%systemdrive%\*.ms" del /f /s /q "%systemdrive%\*.ms" 2>nul
  if exist "%systemdrive%\*.diz" del /f /s /q "%systemdrive%\*.diz" 2>nul
  if exist "%systemdrive%\*.??$" del /f /s /q "%systemdrive%\*.??$" 2>nul
  if exist "%systemdrive%\*.??~" del /f /s /q "%systemdrive%\*.??~" 2>nul
  if exist "%systemdrive%\*.
$" del /f /s /q "%systemdrive%\*.
$" 2>nul
  if exist "%systemdrive%\*.~*" del /f /s /q "%systemdrive%\*.~*" 2>nul
  if exist "%systemdrive%\*.
@" del /f /s /q "%systemdrive%\*.
@" 2>nul
  if exist "%systemdrive%\recycled\*.*" del /f /s /q %systemdrive%\recycled\*.* 2>nul
  if exist "%windir%\*.bak" del /f /s /q %windir%\*.bak 2>nul
  if exist "%windir%\*.tmp" del /f /s /q %windir%\*.tmp 2>nul
  if exist "%windir%\softwaredistribution\download\*.*" del /f /s /q %windir%\softwaredistribution\download\*.* 2>nul
  if exist "%systemroot%\temp\*.*" del /a /f /s /q "%systemroot%\temp\*.*" 2>nul
  if exist "%systemroot%\prefetch\*.*" del /a /f /s /q "%systemroot%\prefetch\*.*" 2>nul
  if exist "%systemroot%\minidump\*.*" del /f /q /s /a "%systemroot%\minidump\*.*" 2>nul
  if exist "%systemroot%\*.dmp" del /a /f /s /q "%systemroot%\*.dmp" 2>nul
  if exist "%systemroot%\*.tmp" del /a /f /s /q "%systemroot%\*.tmp" 2>nul
  if exist "%systemroot%\*._mp" del /a /f /s /q "%systemroot%\*._mp" 2>nul
  if exist "%systemroot%\*.gid" del /a /f /s /q "%systemroot%\*.gid" 2>nul
  if exist "%systemroot%\*.bak" del /a /f /s /q "%systemroot%\*.bak" 2>nul
  if exist "%systemroot%\*.old" del /a /f /s /q "%systemroot%\*.old" 2>nul
  if exist "%systemroot%\*.query" del /a /f /s /q "%systemroot%\*.query" 2>nul
  rd /s /q %windir%\temp & md %windir%\temp
  if exist "%userprofile%\local settings\temp\*.*" del /f /s /q "%userprofile%\local settings\temp\*.*" 2>nul
  if exist "%userprofile%\recent\*.*" del /f /s /q "%userprofile%\recent\*.*" 2>nul
  if exist "%allusersprofile%\documents\drwatson\*.*" del /f /q "%allusersprofile%\documents\drwatson\*.*" 2>nul
  if exist "%userprofile%\application data\microsoft\office\recent\*.lnk" del /f /q "%userprofile%\application data\microsoft\office\recent\*.lnk" 2>nul
  rem echo 正在清理临时文件……
  for /d %%a in ("%temp%\*.*") do rd /s /q "%%a"
  del /a /f /s /q "%temp%\*.*" 2>nul
  for /d %%a in ("%tmp%\*.*") do rd /s /q "%%a"
  del /a /f /s /q "%tmp%\*.*" 2>nul
  echo 正在清理系统升级补丁留下来的反安装目录……
  for /f "tokens=1" %%i in ('dir %systemroot%\$*$ /s /b /ad') do rd /s /q %%i
  echo 正在正在清理ie缓存、cookies、历史纪录等(当前用户)...
  reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v cache&
  reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v cookies>&
  reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v history>&
  reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v nethood>&
  reg query "hkcu\software\microsoft\windows\currentversion\explorer\shell folders" /v recent>&
  for /f "tokens=3*" %%a in () do (
  for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i" 2>nul
  del /a /f /s /q "%%a %%b\*.*" del / 2>nul
  )
  echo 清除浏览器地址记录...
  reg delete "hkey_current_user\software\microsoft\internet explorer\typedurls" /f 2>nul
  reg add "hkey_current_user\software\microsoft\internet explorer\typedurls"
  echo 清除运行记录...
清除电脑垃圾  reg delete "hkey_current_user\software\microsoft\windows\currentversion\explorer\runmru" /f 2>nul
  reg add "hkey_current_user\software\microsoft\windows\currentversion\explorer\runmru" /v "mrulist" /t reg_sz /d "a" /f
  pause >nul
  goto exit
  3把2中的编码复制黏贴到记事本中。
  4保存到桌面,文件名为清理系统缓存.bat,注意一定要用.bat后缀。文件类型:所有文件。
  5在桌面上双击此bat文件。
  6系统自动清理,很快即可清理完成。
  xp电脑清理系统垃圾文件解决方法2  软件清理(下面以腾讯电脑管家为例)
  下载并安装腾讯管家,打开,点击刷子图标。
  点击扫描垃圾,进行垃圾扫描。
  扫描出了垃圾,点击立即清理。
  清理完成以后,还可以点击这里深度清理。
  手动选择要清除的垃圾,点击深度清理即可。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。