1、清理C盘垃圾文件
命名为clean.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 Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause
2、微信多开
命名为doublewechat.bat 内容如下
@echo off
chcp 65001>nul 2>nul
mode con cols=50 lines=10
color 0a
title=微信多开
set wechat_path=".\WeChat.exe"
if exist %wechat_path% (goto start) else (goto exit)
:start
tasklist | find /i "WeChat.exe">nul 2>nul && taskkill /f /t /im WeChat.exe>nul 2>nul && echo 已关闭微信进程
set /p start_num= 请设置多开微信个数:
if [%start_num%]==[] (set start_num=1)
for /L %%a in (1 1 %start_num%) do start "" %wechat_path%
exit
:exit
echo 请将本文件移动到WeChat.exe同级目录下
pause:
exit