首页 > 课堂 > 电脑教程 > 正文

让电脑急速如飞的七个小技巧(批处理)

2024-05-08 16:10:13
字体:
来源:转载
供稿:网友

第一招:清除系统垃圾

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ 清除系统垃圾.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。



@echo off

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%/prefetch/*.*

rd /s /q %windir%/temp & md %windir%/temp

del /f /q %userprofile%/cookies/*.*

del /f /q %userprofile%/recent/*.*

del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"

del /f /s /q "%userprofile%/Local Settings/Temp/*.*"

del /f /s /q "%userprofile%/recent/*.*"

echo 清除系统垃圾完成!按任意键继续……

echo. & pause

以后每隔一段时间你就可以双击些工具,运行完必就会还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?这招比那些所谓的优化大师、超级兔子更加简便好用!不会破坏系统文件!

第二招:清除所有多余的启动项目

此命令将自动清理所有非必要的启动项目,仅保留输入法(ctfmon)。

目的是减少不必要的资源占用,使系统运行顺畅。

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ 清除启动项.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!大约一分钟不到。

@ ECHO OFF

color 1f

title 清除所有多余的启动项目

PAUSE

reg delete HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run /va /f

reg delete HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run /va /f

reg add HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run /v ctfmon.exe /d C:/WINDOWS/system32/ctfmon.exe

reg delete "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg" /f

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1" /v command /d ""C:/WINDOWS/IME/imjp8_1/IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1" /v hkey /d HKLM

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1" /v inimapping /d 0

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1" /v item /d IMJPMIG

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/IMJPMIG8.1" /v key /d SOFTWARE/Microsoft/Windows/CurrentVersion/Run

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A" /v command /d "C:/WINDOWS/system32/IME/TINTLGNT/TINTSETP.EXE /IMEName"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A" /v hkey /d HKLM

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A" /v inimapping /d 0

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A" /v item /d TINTSETP

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002A" /v key /d SOFTWARE/Microsoft/Windows/CurrentVersion/Run

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync" /v command /d ""C:/WINDOWS/IME/imjp8_1/IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync" /v hkey /d HKLM

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync" /v inimapping /d 0

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync" /v item /d TINTSETP

reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/MSConfig/startupreg/PHIME2002ASync" /v key /d SOFTWARE/Microsoft/Windows/CurrentVersion/Run

del "C:/Documents and Settings/All Users/「开始」菜单/程序/启动/*.*" /q /f

del "C:/Documents and Settings/Default User/「开始」菜单/程序/启动/*.*" /q /f

del "%userprofile%/「开始」菜单/程序/启动/*.*" /q /f

start C:/WINDOWS/pchealth/helpctr/binaries/msconfig.exe

第三招:清除所有多余的桌面右键菜单

很多显卡在装了驱动之后,桌面右键会多出一项或多项菜单,这些功能并不实用,

还会拖慢右键的弹出速度,我们最好清除它。

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ 清除右键菜单.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!大约一分钟不到。

@ ECHO OFF

title 清除所有多余的桌面右键菜单

color 1a

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

第四招:C盘转换为NTFS格式

NTFS格式是WinXP推荐使用的格式。转换为NTFS格式能提高硬盘存储的

效率,并可设置访问权限以保护文件。但NTFS格式的分区在DOS/WIN9X

下均不能被识别,可能会给初级用户造成不便。如无必要请不要转换。

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ C盘转换为NTFS格式.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!大约一分钟不到。

@ ECHO OFF

color 1b

title C盘转换为NTFS格式

convert c:/fs:ntfs

第五招:给每个盘添加卷标

此命令将为本机每个盘都添加上卷标,一般是用在新机上面。

以引导初学者更合理地支配他们的硬盘空间。

方法如上,复制内容见下(红色部分)

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ 给每个盘添加卷标.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!大约一分钟不到。

@ ECHO OFF

title 给每个盘添加卷标

color 1B

PAUSE

c:

label c:WINXP

label d:软件

label e:影视

label f:游戏

label g:资料

label h:备份

d:

md 本机驱动程序

md 本机驱动程序/0.DirectX

md 本机驱动程序/1.主板芯片组

md 本机驱动程序/2.显卡

md 本机驱动程序/3.声卡

md 本机驱动程序/4.网卡

md 本机驱动程序/5.摄像头

第六招:关闭有害端口

提高安全性,让你上网更加无后顾之忧!!!

第六招不让发了,太长,传个做好的上来试试!

下载地址如下:



第七招:威金病毒批处理专杀

“威金”病毒主要通过网络共享传播,病毒会感染电脑中所有的.EXE可执行文件,传播速度十分迅速。“威金”病毒运行后,修改注册表自启动项,以使自己随系统一起运行,向系统文件目录下生成以下病毒文件:

Program Files/svhost32.exe

Program Files/micorsoft/svhost32.exe

windows/explorer.exe

windows/logo1_exe

windows/rundll32.exe

windows/rundl132.exe

windows/intel/rundl132.exe

windows/dll.dll

病毒新变种还会自动从网站下载“天堂杀手”以及“QQ大盗(QQpass)”等10余种木马病毒,企图盗取包括天堂、征途、梦幻西游、传奇等多种流行网游以及QQ的帐号、密码。

方法如上,复制内容见下(红色部分)

在桌面上单击鼠标右键,选择新建一个“记事本”,把下面红色部分复制进去,点“另存为”,把文件名定为“ 威金病毒批处理专杀.bat ”就完成,记住后缀名一定要是.bat,然后把它移到一个您想要保存的目录,OK了!大约一分钟不到。

@ECHO OFF

del c:/winnt/logo1_.exe

del c:/windows/logo1_.exe

del c:/winnt/0sy.exe

del c:/windows/0sy.exe

del c:/winnt/1sy.exe

del c:/windows/1sy.exe

del c:/winnt/2sy.exe

del c:/windows/2sy.exe

del c:/winnt/3sy.exe

del c:/windows/3sy.exe

del c:/winnt/4sy.exe

del c:/windows/4sy.exe

del c:/winnt/5sy.exe

del c:/windows/5sy.exe

del c:/winnt/6sy.exe

del c:/windows/6sy.exe

del c:/winnt/7sy.exe

del c:/windows/7sy.exe

del c:/winnt/8sy.exe

del c:/windows/8sy.exe

del c:/winnt/9sy.exe

del c:/windows/9sy.exe

del c:/winnt/rundl132.exe

del c:/windows/rundl132.exe

net share c$ /d

net share d$ /d

net share e$ /d

net share F$ /d

net share G$ /d

net share h$ /d

net share i$ /d

net share j$ /d

net share admin$ /d

net share ipc$ /d

del c:/winnt/logo1_.exe

del c:/windows/logo1_.exe

del c:/windows/vdll.dll

del c:/winnt/vdll.dll

del c:/windows/tdll.dll

del c:/winnt/tdll.dll

del c:/windows/dll.dll

del c:/winnt/dll.dll

del c:/winnt/kill.exe

del c:/windows/kill.exe

del c:/winnt/sws32.dll

del c:/windows/sws32.dll

del c:/winnt/rundl132.exe

del c:/windows/rundl132.exe

echo.

echo.

echo.

echo. *****************************

echo.

echo. 金╬刚【电脑诊所】正在为您查毒...请不要关闭......

echo.

echo. *****************************

echo.

echo.

echo.

echo.

ping 127.0.0.1 -n 5

del c:/winnt/logo1_.exe

del c:/windows/logo1_.exe

del c:/windows/vdll.dll

del c:/winnt/vdll.dll

del c:/windows/dll.dll

del c:/winnt/dll.dll

del c:/windows/tdll.dll

del c:/winnt/tdll.dll

del c:/winnt/kill.exe

del c:/windows/kill.exe

del c:/winnt/sws32.dll

del c:/windows/sws32.dll

del c:/winnt/rundl132.exe

del c:/windows/rundl132.exe

echo.

echo.

echo.

echo. *****************************

echo.

echo. 金╬刚【电脑诊所】正在为您查毒...请不要关闭......

echo.

echo. *****************************

echo.

echo.

echo.

echo.

ping 127.0.0.1 -n 5

del c:/winnt/logo1_.exe

del c:/windows/logo1_.exe

del c:/windows/vdll.dll

del c:/winnt/vdll.dll

del c:/windows/dll.dll

del c:/winnt/dll.dll

del c:/windows/tdll.dll

del c:/winnt/tdll.dll

del c:/winnt/kill.exe

del c:/windows/kill.exe

del c:/winnt/sws32.dll

del c:/windows/sws32.dll

del c:/windows/0sy.exe

del c:/winnt/1sy.exe

del c:/windows/1sy.exe

del c:/winnt/2sy.exe

del c:/windows/2sy.exe

del c:/winnt/3sy.exe

del c:/windows/3sy.exe

del c:/winnt/4sy.exe

del c:/windows/4sy.exe

del c:/winnt/5sy.exe

del c:/windows/5sy.exe

del c:/winnt/6sy.exe

del c:/windows/6sy.exe

del c:/winnt/7sy.exe

del c:/windows/7sy.exe

del c:/winnt/8sy.exe

del c:/windows/8sy.exe

del c:/winnt/9sy.exe

del c:/windows/9sy.exe

del c:/winnt/rundl132.exe

del c:/windows/rundl132.exe

del C:/winnt/Logo1_.exe

del C:/winnt/rundl132.exe

del C:/winnt/bootconf.exe

del C:/winnt/kill.exe

del C:/winnt/sws32.dll

del C:/winnt/dll.dll

del C:/winnt/vdll.dll

del c:/winnt/tdll.dll

del C:/winnt/system32/ShellExt/svchs0t.exe

del C:/Program Files/Internet Explorer/0SY.exe

del C:/Program Files/Internet Explorer/1SY.exe

del C:/Program Files/Internet Explorer/2sy.exe

del C:/Program Files/Internet Explorer/3sy.exe

del C:/Program Files/Internet Explorer/4sy.exe

del C:/Program Files/Internet Explorer/5sy.exe

del C:/Program Files/Internet Explorer/6SY.exe

del C:/Program Files/Internet Explorer/7sy.exe

del C:/Program Files/Internet Explorer/8sy.exe

del C:/Program Files/Internet Explorer/9sy.exe

del C:/winnt/system32/Logo1_.exe

del C:/winnt/system32/rundl132.exe

del C:/winnt/system32/bootconf.exe

del C:/winnt/system32/kill.exe

del C:/winnt/system32/sws32.dll

del C:/windows/Logo1_.exe

del C:/windows/rundl132.exe

del C:/windows/bootconf.exe

del C:/windows/kill.exe

del C:/windows/sws32.dll

del C:/windows/dll.dll

del C:/windows/vdll.dll

del c:/windows/tdll.dll

del C:/windows/system32/ShellExt/svchs0t.exe

del C:/windows/system32/Logo1_.exe

del C:/windows/system32/rundl132.exe

del C:/windows/system32/bootconf.exe

del C:/windows/system32/kill.exe

del C:/windows/system32/sws32.dll

del c:/_desktop.ini /f/s/q/a

del d:/_desktop.ini /f/s/q/a

del e:/_desktop.ini /f/s/q/a

del f:/_desktop.ini /f/s/q/a

del g:/_desktop.ini /f/s/q/a

del h:/_desktop.ini /f/s/q/a

del i:/_desktop.ini /f/s/q/a

del j:/_desktop.ini /f/s/q/a

del k:/_desktop.ini /f/s/q/a


注:相关教程知识阅读请移步到电脑常识频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选