为躲避老板检查而编写的批处理,可以一键退出ie和一些常用的视频,退出可以说是瞬间的事。
有一个BUG,因为需要在开始启动栏创建快捷方式,360会有所表示,希望朋友们能够予以改进
- @echo off
- rem 在D:\Program Files文件夹下创建清屏文件夹及清屏主程序
- md "D:\Program Files\清屏"
- echo @echo off>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM iexplore.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM storm.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM txplatform.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM mplayer.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM stormtray.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo TASKKILL /F /IM qqplayer.exe >nul 2>nul>>"D:\Program Files\清屏\清屏.bat"
- echo exit>>"D:\Program Files\清屏\清屏.bat"
- rem 创建清屏.vbs,通过调用清屏.vbs不显示批处理的黑框
- echo Set ws = CreateObject("WScript.Shell")>>"D:\Program Files\清屏\清屏.vbs"
- echo ws.Run """D:\Program Files\清屏\清屏.bat",vbhide>>"D:\Program Files\清屏\清屏.vbs"
-
- rem 创建到快速启动栏的快捷方式
- echo [InternetShortcut] >>"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\清屏.url"
- echo URL="D:\Program Files\清屏\清屏.vbs" >>"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\清屏.url"
- echo IconIndex=6 >>"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\清屏.url"
- echo IconFile=ieakui.dll >>"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\清屏.url"
-
- rem 创建卸载快捷方式及主程序
- md "%USERPROFILE%\「开始」菜单\程序\卸载清屏"
- echo [InternetShortcut] >>"%USERPROFILE%\「开始」菜单\程序\卸载清屏\卸载.url"
- echo URL="D:\Program Files\清屏\卸载.bat" >>"%USERPROFILE%\「开始」菜单\程序\卸载清屏\卸载.url"
- echo IconIndex=6 >>"%USERPROFILE%\「开始」菜单\程序\卸载清屏\卸载.url"
- echo IconFile=ieakui.dll >>"%USERPROFILE%\「开始」菜单\程序\卸载清屏\卸载.url"
- echo @echo off>>"D:\Program Files\清屏\卸载.bat"
- echo del 清屏.bat>>"D:\Program Files\清屏\卸载.bat"
- echo del 清屏.vbs>>"D:\Program Files\清屏\卸载.bat"
- echo del "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\清屏.url">>"D:\Program Files\清屏\卸载.bat"
- echo rd /s /q "%USERPROFILE%\「开始」菜单\程序\卸载清屏">>"D:\Program Files\清屏\卸载.bat"
- echo rd /s /q "D:\Program Files\清屏">>"D:\Program Files\清屏\卸载.bat"
复制代码
|