bat启动cmd,超级管理员
bat启动cmd,超级管理员
https://www.yisu.com/zixun/311393.html
这些写的也太详细了:
确实如此(加了管理员启动,就不能拖拽了):
以下代码可以直接拖拽(取消了管理员权限启动)
@echo off
@REM %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
@REM cd /d "%~dp0"
start cmd /c "call C:\Users\XXX\anaconda3\Scripts\activate.bat&&call activate base&&call cd C:\Users\xxx\Documents\GitHub\TraceVisualizationGUI &&call python TVMainWindow.py"