当前聚焦:电脑运行慢加内存条还是加固态_电脑运行慢
你们好,最近小品发现有诸多的小伙伴们对于电脑运行慢加内存条还是加固态,电脑运行慢这个问题都颇为感兴趣的,今天小活为大家梳理了下,一起往下看看吧。
(资料图片仅供参考)
1、首先,我们将创建一个新的文本文档文件!我们可以用鼠标右键创建一个新的文本文档文件!我们可以从桌面的鼠标右键菜单中选择“新建”,然后选择“文本文档”!您可以在桌面上创建一个新的空白文本文档文件!
2、现在我们要打开新的文本文档文件!里面什么都没有,是空的!我们要在这里编辑!在文本文档文件中输入一些程序代码!这些代码如下!
3、@ECHO off
4、color 0a
5、* Echo"s current account:% User name%
6、ECHO.
7、Echo,请选择是否将其用于服务器:
8、echo.
9、回声1号。是服务器-按任意数字键。
10、回声2号。非服务器-按Enter或任何其他键。
11、echo.
12、Set /p s=请选择:
13、echo %s%|findstr /be "[0-9]*" nul goto:server||goto:PC
14、:if /i "%s%" equ "Y" goto:server else goto:pc
15、:PC
16、ECHO==这个程序用在服务器上是相当危险的。操作请参考本程序的源代码REM!==
17、当REM服务器正在运行时,不要使用这部分操作!否则,我不负责!
18、清理一下。bak备份标题-小心!
19、del /f /s /q %windir%\*.bak
20、在服务器中使用REM时,不要删除日志!-小心点!
21、请不要在服务器中使用标题时删除日志!-小心点!
22、del /f /s /q %systemdrive%\*.log
23、REM,不要用rd/s/q % windir % \ tempmd % windir % \ temp命令,否则服务器服务(比如DB)容易出问题!
24、:del /f/s /q %windir%\temp\*.*
25、REM要清理帮助文件,只需删除以下内容:
26、:rd /s /q "%windir%\help"
27、goto:server
28、:server
29、ECHO :1。清除局域网共享的痕迹-注册表:
30、标题:1。清除局域网共享的痕迹-注册表:
31、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares" /f nul 2nul
32、ECHO :2。清除运行或操作历史记录-注册表:
33、标题:2。清除运行或操作历史记录-注册表:
34、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder" /va /f nul 2nul
35、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt" /va /f nul 2nul
36、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar" /va /f nul 2nul
37、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3" /va /f nul 2nul
38、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.jpg" /va /f nul 2nul
39、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ini" /va /f nul 2nul
40、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp" /va /f nul 2nul
41、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc" /va /f nul 2nul
42、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip" /va /f nul 2nul
43、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm" /va /f nul 2nul
44、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico" /va /f nul 2nul
45、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf" /va /f nul 2nul
46、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif" /va /f nul 2nul
47、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav" /va /f nul 2nul
48、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls" /va /f nul 2nul
49、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm" /va /f nul 2nul
50、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f nul 2nul
51、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" /va /f nul 2nul
52、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*" /va /f nul 2nul
53、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\mp3" /va /f nul 2nul
54、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f nul 2nul
55、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f nul 2nul
56、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f nul 2nul
57、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f nul 2nul
58、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f nul 2nul
59、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f nul 2nul
60、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\htm" /va /f nul 2nul
61、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg" /va /f nul 2nul
62、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f nul 2nul
63、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f nul 2nul
64、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count" /va /f nul 2nul
65、reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count" /va /f nul 2nul
66、reg delete "HKCU\Software\WinRAR\ArcHistory" /va /f nul 2nul
67、reg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f nul 2nul
68、reg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f nul 2nul
69、reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f nul 2nul
70、reg delete "HKCU\Software\Microsoft\Microsoft Management Console\Recent File List" /va /f nul 2nul
71、reg delete "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Recent File List" /va /f nul 2nul
72、reg delete "HKCU\Software\Microsoft\Office\11.0\Excel\Recent File" /va /f nul 2nul
73、reg delete "HKCU\Software\Microsoft\Office\11.0\Word\Data" /v "Settings" /f nul 2nul
74、reg delete "HKCU\Software\VMware, Inc." /va /f nul 2nul
75、ECHO :3。清理IE浏览历史下拉列表-注册表:
76、标题:3。清理IE浏览历史下拉列表-注册表:
77、reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedUrls" /va /f nul 2nul
78、ECHO :4。清理常见系统垃圾文件=:
79、标题:4。清理常见的系统垃圾文件:
80、del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*"nul 2nul
81、del /f /s /q %systemdrive%\*.tmp
82、del /f /s /q %systemdrive%\*._mp
83、del /f /s /q %systemdrive%\*.gid
84、del /f /s /q %systemdrive%\*.chk
85、del /f /s /q %systemdrive%\*.old
86、del /f /s /q %systemdrive%\thumbs.db
87、del /f /s /q %systemdrive%\recycled\*.*
88、del /f /s /q %windir%\system32\dllcache\*.*
89、del /f /s /q %windir%\prefetch\*.*
90、cls
91、ECHO :5。出于安全原因,以下清理操作仅对当前登录帐户有效:
92、标题:5。出于安全原因,以下清理操作仅对当前登录帐户有效:
93、del /f /s /q "%tmp%\*.*"
94、ECHO :6.清理文件缓存:
95、TITLE :6.清理文件缓存:
96、SFC /purgecache
97、cls
98、ECHO :7.清理系统升级补丁目录:
99、TITLE :7.清理系统升级补丁目录:
100、dir %SystemRoot%\$*$ /ad/b %SystemRoot%\DirTmp.txt
101、for /f %%a in (%SystemRoot%\DirTmp.txt) do rd /s /q "%SystemRoot%\%%a"
102、del /f /q %SystemRoot%\DirTmp.txt
103、cls
104、ECHO :8.清理磁盘错误检测文件:
105、TITLE :8.清理磁盘错误检测文件:
106、dir %SystemDrive%\found. /ad/b %systemDrive%\DirTmp.txt
107、for /f %%a in (%systemDrive%\DirTmp.txt) do rd /s /q "%systemDrive%\%%a"
108、del /f /q %systemDrive%\DirTmp.txt
109、cls
110、ECHO :9.正在清理所有(域)帐户下的所有临时文件,请稍候:
111、TITLE :9.正在清理所有(域)帐户下的所有临时文件,请稍候:
112、dir "%SystemDrive%\Documents and Settings\" /ad/b %SystemDrive%\DirTmp.txt
113、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\*.*"
114、del /f /q %SystemDrive%\DirTmp.txt
115、cls
116、ECHO :10.删除系统驱动备份文件,释放空间:
117、TITLE :10.删除系统驱动备份文件,释放空间:
118、rd /s /q %SystemDrive%\swsetup\
119、ECHO :11.正在进行系统优化:
120、TITLE :11.正在进行系统优化:
121、echo 禁用RealPlayer更新和开机项
122、:清理右键ATI显卡选项--ATI CATALYST(R) Control
123、:if exist "%windir%\system32\atiacmxx.dll" (regsvr32 /u "%windir%\system32\atiacmxx.dll")
124、:清理右键Intel显卡选项
125、:if exist "%windir%\system32\igfxpph.dll" regsvr32 /u "%windir%\system32\igfxpph.dll"
126、:清理右键NVIDIA显卡选项
127、:if exist "%windir%\system32\nvcpl.dll" regsvr32 /u "%windir%\system32\nvcpl.dll"
128、:清理realplayer更新
129、if exist "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_
130、if exist "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" del /f /s /q "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe"
131、reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f
132、cls
133、ECHO :12.正在进行最后一步——磁盘清理,完成后自动退出:
134、ECHO 当耗时越长时,说明你系统垃圾越多,请耐心等待程序执行完毕。
135、TITLE :12.正在进行最后一步——磁盘清理,完成后自动退出:
136、cleanmgr /sagerun:99
137、exit
138、现在我们要在我们的电脑里设置一下!把我们文件的扩展名显示出来!这样我们就能修改文件的扩展名了!我们随便用一个文件夹,打开“组织”菜单,然后“文件夹和搜索选项”!在选项卡里选择查看,
139、然后把“隐藏已知文件类型的扩展名”前面的钩去掉!
140、把这个文本文件另存为BAT文件!我们可以直接保存好这个TXT文件,之后把TXT的扩展名改为BAT的;也可以另存,这时候在文件名那里把扩展名改为BAT的也是可以的!
141、如果安装了360的一些软件的,我们就先要把360的软件退出!如果不退出就会有一些提示,我们就要允许它就行了!不要阻止,阻止了程序会运行不下去!
142、现在我们就运行一下我们之前做好的软件吧!我们要选择一下,我们的就选择不是服务器2吧!现在我们就能看程序在一个一个地清除系统中的垃圾文件了!
143、现在我们就用一些常用的软件来检测一下我们的电脑还有多少垃圾吧!嘻嘻…两个软件的检测到的垃圾都不多!是不是很有用呢?赶快自己动手做一个吧!
以上就是电脑运行慢这篇文章的一些介绍,希望对大家有所帮助。