功能
开始
|
|
判断是否安装微信-----(已安装)----->微信自动化多开
|
|
|
(否,未安装)
|
|
\|/
自动化安装微信,并最后执行多开任务
下载地址
代码
@echo off
:: 脚本由itgrub.com制作
:: 设置微信环境变量
set wechatPath="C:\Program Files\Tencent\WeChat\WeChat.exe"
set software_name="微信"
:: 检查注册表中是否存在该软件
reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall |find /i "WeChat">nul 2>nul
:: 检查命令执行结果
if %errorlevel% equ 0 (
echo %software_name% 已安装,正在准备执行微信多开计划,默认多开为两个微信,请自行修改
start "WeChat1" %wechatPath%
start "WeChat2" %wechatPath%
pause
) else (
echo %software_name% 未安装在本电脑.
echo 正在准备安装微信,请稍后
bitsadmin /transfer weixin https://dldir1v6.qq.com/weixin/Windows/WeChatSetup.exe C:\weixin.exe
start /WAIT C:\weixin.exe /S
echo "!!!!!!!!!!!!!!微信安装已完成,正在准备执行微信多开计划,默认多开为两个微信,请自行修改!!!!!!!!!!!!!!"
start "WeChat1" %wechatPath%
start "WeChat2" %wechatPath%
pause
)
exit /b 0