快捷搜索:  汽车  科技

按键精灵主要修改的软件:用按键做一个清理系统的软件

按键精灵主要修改的软件:用按键做一个清理系统的软件[backcolor=rgb(154 205 50)] 如果不希望出现按任意键开始的提示,可以右击清理垃圾-.bat文件 ,选择编辑,将红框中的代码去掉即可。[backcolor=rgb(154 205 50)] 最后点击按钮,即弹出清理垃圾的窗口,按任意键则开始清理垃圾。[backcolor=rgb(154 205 50)] [backcolor=rgb(249 249 249)] 下载之后,添加到按键精灵附件中。[backcolor=rgb(255 255 255)][backcolor=rgb(154 205 50)] 然后,在脚本界面上画一个按钮,将以下代码添加到按钮单击事件中。复制代码

金猪脚本(原飞猪脚本)以按键精灵教学为主 涉及UiBot,Python Lua等脚本编程语言 教学包括全自动办公脚本 游戏辅助脚本 引流脚本 网页脚本 安卓脚本 IOS脚本 注册脚本 点赞脚本 阅读脚本以及网赚脚本等各个领域。想制作脚本和学习按键精灵的朋友可以添加按键精灵学习交流群:554127455 学习路上不再孤单 金猪脚本伴你一同成长.

按键精灵主要修改的软件:用按键做一个清理系统的软件(1)

方法1-调用bat文件

清理垃圾bat文件下载:

按键精灵主要修改的软件:用按键做一个清理系统的软件(2)

清理垃圾.bat.rar (647 Bytes 下载次数:120)

[backcolor=rgb(154 205 50)] [backcolor=rgb(249 249 249)] 下载之后,添加到按键精灵附件中。

[backcolor=rgb(255 255 255)][backcolor=rgb(154 205 50)] 然后,在脚本界面上画一个按钮,将以下代码添加到按钮单击事件中。

  1. PutAttachment ".plugin" "清理垃圾-.bat"
  2. RunApp ".plugin\清理垃圾-.bat"

复制代码

[backcolor=rgb(154 205 50)] 最后点击按钮,即弹出清理垃圾的窗口,按任意键则开始清理垃圾。

按键精灵主要修改的软件:用按键做一个清理系统的软件(3)

[backcolor=rgb(154 205 50)] 如果不希望出现按任意键开始的提示,可以右击清理垃圾-.bat文件 ,选择编辑,将红框中的代码去掉即可。

按键精灵主要修改的软件:用按键做一个清理系统的软件(4)

[backcolor=rgb(154 205 50)] 如果设置了不提示按任意键删除系统文件,并且,也不希望出现cmd的黑色窗口,那么将按钮单击事件中的代码修改为以下代码即可:

  1. PutAttachment ".plugin" "清理垃圾-.bat"
  2. set ws=CreateObject("WScript.Shell")
  3. ws.Run ".plugin\清理垃圾-.bat" 0

复制代码

方法2-打开cmd.exe 逐行运行

[backcolor=rgb(154 205 50)] [backcolor=rgb(249 249 249)] 在脚本界面上画一个按钮,将以下代码添加到按钮单击事件中即可。

  1. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*.tmp ")
  2. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*._mp ")
  3. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*.log ")
  4. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*.gid ")
  5. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*.chk ")
  6. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\*.old ")
  7. RunApp ("cmd.exe /C del /f /s /q %systemdrive%\recycled\*.*")
  8. RunApp ("cmd.exe /C del /f /s /q %windir%\*.bak ")
  9. RunApp ("cmd.exe /C del /f /s /q %windir%\prefetch\*.*")
  10. RunApp ("cmd.exe /C rd /s /q %windir%\temp & md %windir%\temp")
  11. RunApp ("cmd.exe /C del /f /q %userprofile%\cookies\*.*")
  12. RunApp ("cmd.exe /C del /f /q %userprofile%\recent\*.* ")
  13. RunApp ("cmd.exe /C del /f /s /q" & chr(34)&"%userprofile%\Local Settings\Temporary Internet Files\*.*"& chr(34) )
  14. RunApp ("cmd.exe /C del /f /s /q" & chr(34)&"%userprofile%\Local Settings\Temp\*.*"& chr(34) )
  15. RunApp ("cmd.exe /C del /f /s /q" & chr(34)&"%userprofile%\recent\*.*"& chr(34) )

复制代码

两种方法的利弊

方法1:直接调用bat

有利之处: 1、bat文件中的代码便于管理 。

2、可以设置运行bat文件时,不弹出黑色的运行窗口。

不便之处: 需要添加释放bat文件。

方法2:打开cmd窗口逐行运行

有利之处: 不需要添加释放bat文件 。

不便之处: 会弹出多个cmd黑窗口,直到文件删除完毕才消失。

猜您喜欢: