相對目錄
當前盤符:%~d0
當前路徑:%cd%
當前執行命令行:%0
當前bat文件路徑:%~dp0
當前bat文件短路徑:%~sdp0
set curdir=%~dp0
cd /d %curdir%\dist
start Main.exe
提取管理員權限
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
等待幾秒
timeout /t 1