学习啦>学习电脑>电脑技巧>

电脑运行很卡很慢怎么解决

时间: 春健736 分享

  电脑随着长时间的使用会不可避免的出现的运行速度变慢的现象,可以说跟装上系统的时候差距很大,面对越来越慢的电脑我们该怎么办呢?那么电脑运行很卡很慢怎么解决?今天学习啦小编与大家分享下电脑运行很卡很慢怎么解决的解决方法,有兴趣的朋友不妨了解下。

  电脑运行很卡很慢解决解决方法

  首先我们就新建一个文本文档文件!我们鼠标右键就能新建一个文本文档文件了!我们可以在桌面鼠标右键菜单,选择“新建”,然后再选择“文本文档”!就能在桌面新一个空白的文本文档文件了!

  现在我们就要打开新建的文本文档文件!里面什么都没有,空空如也!我们要在这里进行编辑啦!在文本文档文件里输入一些程序代码!这些代码如下!

  @ECHO off

  color 0a

  ::echo 当前帐户:%username%

  ECHO.

  echo 请选择是否用于服务器:

  echo.

  echo 1.是服务器-- 按任意数字键

  echo 2.非服务器-- 按回车或其它任意键

  echo.

  set /p s=请选择:

  echo %s%|findstr /be "[0-9]*" >nul &&goto:server||goto:PC

  ::if /i "%s%" equ "Y" goto:server else goto:pc

  :PC

  ECHO ==本程序用于服务器时具有相当的危险性,请参照本程序源码REM操作!==

  REM 服务器操作时这部分操作请勿使用!否则本人概不负责!

  TITLE 清理.bak备份文件-谨慎操作!

  del /f /s /q %windir%\*.bak

  REM 用于服务器时请勿删除日志!-谨慎操作!

  TITLE 用于服务器时请勿删除日志!-谨慎操作!

  del /f /s /q %systemdrive%\*.log

  REM 勿使用rd /s /q %windir%\temp & md %windir%\temp命令,否则服务器服务(如DB)容易出现问题!

  ::del /f/s /q %windir%\temp\*.*

  REM 若要清理帮助文件,将下面的::删除即可

  ::rd /s /q "%windir%\help"

  goto:server

  :server

  ECHO ::1.清理局域网共享痕迹--注册表::

  TITLE ::1.清理局域网共享痕迹--注册表::

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares" /f >nul 2>nul

  ECHO ::2.清理运行或操作历史记录--注册表::

  TITLE ::2.清理运行或操作历史记录--注册表::

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.jpg" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ini" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\mp3" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\htm" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count" /va /f >nul 2>nul

  reg delete "HKCU\Software\WinRAR\ArcHistory" /va /f >nul 2>nul

  reg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f >nul 2>nul

  reg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Microsoft Management Console\Recent File List" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Office.0\PowerPoint\Recent File List" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Office.0\Excel\Recent File" /va /f >nul 2>nul

  reg delete "HKCU\Software\Microsoft\Office.0\Word\Data" /v "Settings" /f >nul 2>nul

  reg delete "HKCU\Software\VMware, Inc." /va /f >nul 2>nul

  ECHO ::3.清理IE浏览历史的下拉列表--注册表::

  TITLE ::3.清理IE浏览历史的下拉列表--注册表::

  reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedUrls" /va /f >nul 2>nul

  ECHO ::4.正在清理常见系统垃圾文件=::

  TITLE ::4.正在清理常见系统垃圾文件::

  del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nul

  del /f /s /q %systemdrive%\*.tmp

  del /f /s /q %systemdrive%\*._mp

  del /f /s /q %systemdrive%\*.gid

  del /f /s /q %systemdrive%\*.chk

  del /f /s /q %systemdrive%\*.old

  del /f /s /q %systemdrive%\thumbs.db

  del /f /s /q %systemdrive%\recycled\*.*

  del /f /s /q %windir%\system32\dllcache\*.*

  del /f /s /q %windir%\prefetch\*.*

  cls

  ECHO ::5.为安全起见,以下清理操作只对当前登录帐户有效::

  TITLE ::5.为安全起见,以下清理操作只对当前登录帐户有效::

  del /f /s /q "%tmp%\*.*"

  ECHO ::6.清理文件缓存::

  TITLE ::6.清理文件缓存::

  SFC /purgecache

  cls

  ECHO ::7.清理系统升级补丁目录::

  TITLE ::7.清理系统升级补丁目录::

  dir %SystemRoot%$*$ /ad/b >%SystemRoot%\DirTmp.txt

  for /f %%a in (%SystemRoot%\DirTmp.txt) do rd /s /q "%SystemRoot%\%%a"

  del /f /q %SystemRoot%\DirTmp.txt

  cls

  ECHO ::8.清理磁盘错误检测文件::

  TITLE ::8.清理磁盘错误检测文件::

  dir %SystemDrive%\found.??? /ad/b >%systemDrive%\DirTmp.txt

  for /f %%a in (%systemDrive%\DirTmp.txt) do rd /s /q "%systemDrive%\%%a"

  del /f /q %systemDrive%\DirTmp.txt

  cls

  ECHO ::9.正在清理所有(域)帐户下的所有临时文件,请稍候::

  TITLE ::9.正在清理所有(域)帐户下的所有临时文件,请稍候::

  dir "%SystemDrive%\Documents and Settings\" /ad/b >%SystemDrive%\DirTmp.txt

  for /f %%a in (%SystemDrive%\DirTmp.txt) do del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Cookies\*.*"&del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Recent\*.*"&rd /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\History\"&del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\Temp\*.*"&del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\Temporary Internet Files\*.*"

  del /f /q %SystemDrive%\DirTmp.txt

  cls

  ECHO ::10.删除系统驱动备份文件,释放空间::

  TITLE ::10.删除系统驱动备份文件,释放空间::

  rd /s /q %SystemDrive%\swsetup\

  ECHO ::11.正在进行系统优化::

  TITLE ::11.正在进行系统优化::

  echo 禁用RealPlayer更新和开机项

  ::清理右键ATI显卡选项--ATI CATALYST(R) Control

  ::if exist "%windir%\system32\atiacmxx.dll" (regsvr32 /u "%windir%\system32\atiacmxx.dll")

  ::清理右键Intel显卡选项

  ::if exist "%windir%\system32\igfxpph.dll" regsvr32 /u "%windir%\system32\igfxpph.dll"

  ::清理右键NVIDIA显卡选项

  ::if exist "%windir%\system32\nvcpl.dll" regsvr32 /u "%windir%\system32\nvcpl.dll"

  ::清理realplayer更新

  if exist "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_

  if exist "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" del /f /s /q "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe"

  reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f

  cls

  ECHO ::12.正在进行最后一步——磁盘清理,完成后自动退出::

  ECHO 当耗时越长时,说明你系统垃圾越多,请耐心等待程序执行完毕。。。

  TITLE ::12.正在进行最后一步——磁盘清理,完成后自动退出::

  cleanmgr /sagerun:99

  exit

  现在我们要在我们的电脑里设置一下!把我们文件的扩展名显示出来!这样我们就能修改文件的扩展名了!我们随便用一个文件夹,打开“组织”菜单,然后“文件夹和搜索选项”!在选项卡里选择查看,然后把“隐藏已知文件类型的扩展名”前面的钩去掉!

  把这个文本文件另存为BAT文件!我们可以直接保存好这个TXT文件,之后把TXT的扩展名改为BAT的;也可以另存,这时候在文件名那里把扩展名改为BAT的也是可以的!

  如果安装了360的一些软件的,我们就先要把360的软件退出!如果不退出就会有一些提示,我们就要允许它就行了!不要阻止,阻止了程序会运行不下去!

  现在我们就运行一下我们之前做好的软件吧!我们要选择一下,我们的就选择不是服务器2吧!现在我们就能看程序在一个一个地清除系统中的垃圾文件了!

  现在我们就用一些常用的软件来检测一下我们的电脑还有多少垃圾吧!嘻嘻…两个软件的检测到的垃圾都不多!是不是很有用呢?赶快自己动手做一个吧!

  注意事项

  垃圾清除会把系统日志、补丁也清掉!

看过“ 电脑运行很卡很慢怎么解决 ”的人还看了:

1.Win7系统越用越慢怎么办

2.win7开机启动越来越慢的原因

3.电脑win7系统变慢的原因与解决方案

4.让WIN7系统提升运行速度的方法

5.电脑反应太慢怎么解决

736813