%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~s0"" ::","","runas",1)(window.close)&&exit
COLOR A
TITLE 运行RabbitMQ
%comspec% /k "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.10.5\sbin\rabbitmq-service.bat" start & if not errorlevel 1 exit /b 0
echo "rabbit服务启动完成"
c:
cd \Windows\System32\cmd.exe
rabbitmq-plugins enable rabbitmq_management