当前位置:懂科普 >

IT科技

> 一键清理系统垃圾bat的教程 !!

一键清理系统垃圾bat的教程 !!

一键清理Bat是目前最简单、最安全、最实用的清理系统垃圾的方法,小小的bat文件就能满足绝大部分用户的基本需求,如果你不知道该如何做,那么小编我今天将教大家一个款。电脑出现卡顿的现象怎么办?电脑卡顿的原因有很多,比如系统垃圾较多也会出现,那这种情况该怎么解决呢?其实使用bat清理垃圾的方法就可以了,无需下载,使用轻松,接下来我们看看具体的操作是怎么样的吧。清理系统垃圾bat首先我们先新建一个记事本将下面的一段复制粘贴到文本@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 SettingsTemporary Internet Files*.*”  del /f /s /q “%userprofile%Local SettingsTemp*.*”  del /f /s /q “%userprofile%recent*.*”  echo 清除系统LJ完成!  echo. & pause一键清理bat界面1保存文件,重命名文件,为***“.bat”的格式一键清理bat界面2确定后显示如下图,我们双击打开一键清理bat界面3可以看到窗口自动输入一键清理bat界面4完成后点击任意键退出7a64e59b9ee7ad9431333365643662,表示清理完毕了解更多:http://www.xiaobaixitong.com/一键清理bat界面5有没有发现空间变大了呢?有没有觉得运行又流畅了许多呢?以上就是关于一键清理系统垃圾bat的方法了,希望可以帮助到大家。在桌面上,右键,新建文本文档输入以下代码:@echo offecho 专门为windows10而写,因而更专业!按任意键清理您的系统垃圾!echo 本Bat作者为倦意,转载随意,请标明作者!set /p input=请选择(1)清理系统垃圾(2)专清腾讯垃圾(3)直接退出if "%input%"=="1" goto oneif "%input%"=="2" goto twoif "%input%"=="3" goto three:one del /f /s /q "%userprofile%AppDataLocalTemp*.*"del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsINetCacheIE*.*"del /f /s /q "%windir%Offline Web Pages*.*"del /f /s /q "%userprofile%AppDataLocalSteamhtmlcache*.*"del /f /s /q "%systemdrive%*.old" 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 "%windir%SoftwareDistributiondownload*.*"del /f /s /q "%windir%Prefetch*.*"del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsINetCookies*.*"del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsINetCookiesLow*.*"pause&echo 系统垃圾清理完毕exit:twoTASKKILL /f /IM "Tencent TenioDL for Game.exe" TASKKILL /f /IM "QQMicroGameBoxTray.exe" TASKKILL /f /IM "QQMicroGameBoxService.exe" del /f /s /q "%userprofile%AppDataRoamingTencentQQMGBDownload*.*"del /f /s /q "%userprofile%AppDataLocalTencentCross*.*"del /f /s /q "%userprofile%AppDataRoamingTencentQQMicroGameBox*.*"del /f /s /q "%userprofile%AppDataRoamingTencentQQMiniGameBox*.*"del /f /s /q "%userprofile%AppDataRoamingTencentQQMiniDL*.*"del /f /s /q "%userprofile%AppDataRoamingTencent游戏人生cross*.*"del /f /s /q "%userprofile%AppDataLocalTencentQQPet*.*"del /f /s /q "%systemdrive%Program Files (x86)TencentQQMicroGameBoxService*.*"del /f /s /q "%userprofile%RoamingTencentLogs*.*"del /f /s /q "%userprofile%AppDataRoamingTencentQQGAMETempestDownload*.*"del /f /s /q "%userprofile%AppDataRoamingTencentQQTemp*.*"pause&echo 腾讯垃圾清理完毕exit:threeexit3保存为.bat格式的文件即可4如果你嫌麻烦,这里有我自己写好的链接: https://pan.baidu.com/s/1bpnM719 密码: w44i,快速清除的作用:源代码如下@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause记e79fa5e98193e58685e5aeb931333363363436事本重命名:清除系统LJ.bat(复制这个名称)保存即可,双击运行,鼠标右键单击,新建文本文档-记事本在文件中输入:++++++++++++++++++++++++++++++++++++++++++++++@echo off color 0atitle windows10系统垃圾清理---echo ★☆e5a48de588b6e799bee5baa631333363363436 ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★echo.★☆ ☆★echo.★☆ ☆★echo.★☆ 清理系统垃圾文件,请稍等...... ☆★echo ★☆ ☆★echo.★☆ ☆★echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时 echo 请勿关闭本窗口。 echo 正在清除系统垃圾文件,请稍后...... echo 删除补丁备份目录 RD %windir%\$hf_mig$ /Q /S echo 把补丁卸载文件夹的名字保存成2950800.txt dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt echo 从2950800.txt中读取文件夹列表并且删除文件夹 for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q echo 删除2950800.txt del %windir%\2950800.txt /f /q echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件) del %windir%\KB*.log /f /q echo 删除系统盘目录下临时文件 del /f /s /q %systemdrive%\*.tmp echo 删除系统盘目录下临时文件 del /f /s /q %systemdrive%\*._mp echo 删除系统盘目录下日志文件 del /f /s /q %systemdrive%\*.log echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详) del /f /s /q %systemdrive%\*.gid echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件 del /f /s /q %systemdrive%\*.chk echo 删除系统目录下old文件 del /f /s /q %systemdrive%\*.old echo 删除回收站的无用文件 del /f /s /q %systemdrive%\recycled\*.* echo 删除系统目录下备份文件 del /f /s /q %windir%\*.bak echo 删除应用程序临时文件 del /f /s /q %windir%\prefetch\*.* echo 删除系统维护等操作产生的临时文件 rd /s /q %windir%\temp & md %windir%\temp echo 删除当前用户的COOKIE(IE) del /f /q %userprofile%\cookies\*.* echo 删除internet临时文件 del /f /s /q "%userprofile%\local settings\temporary internet files\*.*" echo 删除当前用户日常操作临时文件 del /f /s /q "%userprofile%\local settings\temp\*.*" echo 删除访问记录(开始菜单中的文档里面的东西) del /f /s /q "%userprofile%\recent\*.*" echo echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆ ☆★echo.★☆ ☆★echo.★☆ ☆★echo ★☆ ☆★echo ★☆ 恭喜您!清理全部完成! ☆★echo.★☆ ☆★echo ★☆ ☆★echo.★☆ ☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo.++++++++++++++++++++++++++++++++++++++++++++++然后单击文件,选择另存为将文件另存为“ Windows10一键垃圾清理.bat ”,放置在任意位置。双击文件便开始自动垃圾清理大约要几分钟时间本回答被网友采纳www.51dongshi.com防采集。

如何创建bat命令脚本快速清理垃圾?请看下面方法。

方法

在桌面上点击右键,新建文本文档

电脑垃圾缓存是会不断产生的,所以需要经常清理才行可以使用软件清理,因为手动容易误删打开电脑管

一键清理系统垃圾bat的教程 !!

复制以下代码到文本文档

1、点击“开始——程序——附件——记事本”,创建一个新的记事本。2、将以下代码内容复制到新建的文本文

@echo off 

eche 楼上湮灭繁琐,还要点击不爽,建议用这个,小而精:del C:"Docu

echo 正在清除系统垃圾文件,请稍等...... 

1、以管理员份打开批处理文件2、有些临时文件应用程序正在使用,必须退出应用程序后,批处理才能进行

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

楼主是把扩展名给隐藏了吧 这样试试看行不行 打开我的电脑 点工具---有个文件夹选项再点----

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

一键清理Bat是目前最简单、最安全、最实用的清理系统垃圾的方法,小小的bat文件就能满足绝大部分用户

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

批处理删除系统垃圾其实本身就是一个垃圾 如果你在网上搜索"清除系统垃圾的批处理&q

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

朋友,你好,它的代码如下:@echo off   echo 正在清除系统垃圾文件,

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

新建记事本打开,复制代码粘贴进去。保存,修改文件后缀txt为bat,双击就可以了。代码:@ec

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

@echo offecho 正在清除系统垃圾文件,请稍等del /f /s /q

del /f /s /q %systemdrive%ecycled*.* 

电脑垃圾缓存是会不断产生的,所以需要经常清理才行可以使用软件清理,因为手动容易误删打开电脑管

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

1、点击“开始——程序——附件——记事本”,创建一个新的记事本。2、将以下代码内容复制到新建的文本文

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

eche 楼上湮灭繁琐,还要点击不爽,建议用这个,小而精:del C:"Docu

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

1、以管理员份打开批处理文件2、有些临时文件应用程序正在使用,必须退出应用程序后,批处理才能进行

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

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

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

del /f /s /q "%userprofile%Local SettingsTemp*.*" 

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

echo 清除系统LJ完成! 

echo. & pause

一键清理系统垃圾bat的教程 !! 第2张

保存后将文件命名为“一键清理.bat”

一键清理系统垃圾bat的教程 !! 第3张

双击运行即可。

一键清理系统垃圾bat的教程 !! 第4张

批处理删除系统e79fa5e98193e4b893e5b19e31333361323563垃圾其实本身就是一个垃圾 如果你在网上搜索"清除系统垃圾的批处理"、"批处理清除系统垃圾"之类的关键词,能找到成千上万个类似于下面的批处理。这段代码可以说是广为流传,咋一用起来貌似也很不错,比那些优化软件方便多了,双击鼠标,一切搞定,还能弹出很酷的黑色界面。很多网友也乐于此道,还非常执著地从一个论坛转发到另一个论坛,在这个QQ群转发到那个QQ群,甚至email群发给N多同事。 其实这段代码本身就是一个垃圾中的霸主。那是什么?还是垃圾! @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 /q %userprofile%\*.* 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 这段代码本身没有任何错误,一般来说可以顺利执行。下面我们就来看看它的危害吧。 rd /s /q %windir%\temp & md %windir%\temp 如果你安装了IIS+ASP.NET的话,很可能就会遇到这个问题。在安装ASP.NET的时候,会对temp目录进行权限设置。但是上面这个命令在删除temp文件夹并重建的过程中,会把这个权限的设置抹杀掉。后果就是你的ASP.NET所有页面都不能成功打开,而且显示的错误是framework目录下temp中随机文件写失败(而不是windir temp目录缺少相应权限)。如果你没有看过类似的文章,恐怕很难知道从何下手解决这个问题。其实除了ASP.NET以外,其它应用程序也有可能出现同样的问题。 del /f /s /q %systemdrive%\*.log 日志文件可不是随便删除的,否则很多软件会无法正常卸载。更要命的是,你的数据库可能因此而崩溃。以前有位同事就被这个害惨了,当时请教了好几位OCP都没有办法,只好重装数据库。 del /f /q %userprofile%\cookies\*.* 我登陆大大小小的几十个论坛时,都选择了保存用户名和密码,谁要是把我的cookies删除了,我真想掐死他。 del /f /s /q %windir%\*.bak 不是所有的.bak文件都是垃圾。一些更改XP启动画面的软件,通常会将system32目录下的logonui.exe重命名为logonui.bak,当你觉得不爽,要卸载软件软件时,那么会自动还原为原来的logonui.exe文件。但是如果你在卸载之前就把.bak删除掉了,那就是真的不爽了,电脑用了一段时间后,越来越慢了。可以试试以百下方法进行清理:1、打开开始菜单,选择控制面板程序,在弹出来的对话框中选中电源选项,然后启用高级电源管理程序。2、电脑磁盘里面度的一些碎片要定期进行整理。打开桌面上的我的电脑图标,选择里面要整理的驱动器右击知,选择属性、然后工具,再选择磁盘,打开磁盘碎片整理的对话框,选中分析中的碎片整理然后系统就道会自动 进行。3、每次电脑关机不要直接按电源开关,而是要选择关机按钮。关机之前要把所有的程版序都关闭了再关机,这样可以减少对电脑的损害。3、定期清理电脑的缓存。打开腾讯电脑管家,选择清理垃圾这个功能,然后点开始扫描,扫描结果出来后进行权清理垃圾,WIN7一键清理垃圾 自己下载吧,朋友,你好,它的代码如下:@echo off   echo 正在清除系统垃e69da5e887aae799bee5baa631333337373564圾文件,请稍等...   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%\小甜饼s\*.*   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 清除系统LJ完成! 把上面的文件用BAT文件保存就OK希望我的回答对你有所帮助,祝你成功,快乐~~内容来自www.51dongshi.com请勿采集。

标签: 一键 系统 垃圾 bat
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/q4qkd.html