装完系统常用操作

2018-10-02  本文已影响0人  Mr_White

删除多余的右键代码

将下列代码存为*.bat格式即可。

@ ECHO OFF
@ ECHO.
@ ECHO.
@ ECHO.                              说  明
@ ECHO -----------------------------------------------------------------------
@ ECHO                         右键清除,如此简单
@ ECHO -----------------------------------------------------------------------
PAUSE

regsvr32 /u /s igfxpph.dll
reg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers /f
reg add HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\new /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v HotKeysCmds /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f

重启资源管理器

taskkill /f /im explorer.exe & start explorer.exe

一键清除系统垃圾文件

@echo off
title 一键清除系统垃圾文件
color 0A
mode con: cols=75 lines=28
echo.
echo.                ╭─────────────╮
echo.       ╭──────┤   一键清除系统垃圾文件   ├──────╮
echo.       │        ╰─────────────╯           │
echo.       │                                                      │
echo.       │    这是网上流传的批处理。它会帮你删除回收站、临时目  │
echo.       │录、最近打开过的文档痕迹等。对系统运行稍有帮助,但不能│
echo.       │根治速度慢的问题。电脑速度慢通常是因为太多的无用的运行│
echo.       │占据了CPU和内存资源所致,非删除一些文件就能解决。建议 │
echo.       │装好系统后,及时做Ghost备份。以后如果觉得运行不畅了, │
echo.       │就恢复系统,这是最彻底的办法。                        │
echo.       │                                                      │
echo.       │======================================================│
echo.       │                                                      │
echo.       │    请按任意键开始清除垃圾文件,完成后程序自动退出!    │
echo.       │                                                      │
echo.       ╰───────────────────────────╯
echo.                                  
cls
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%\*.log
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
rd /q /s "C:\Program Files\pipi\pipicache"&&md "C:\Program Files\pipi\pipicache"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
exit
上一篇 下一篇

猜你喜欢

热点阅读