本帖最后由 WHY 于 2024-4-27 16:42 编辑
- PowerShell "Start-Process CMD -Args '/c', '%~dp0start_server.bat', '\"A B\"' -Verb RunAs"
复制代码 如果路径包含空格或特殊字符:- PowerShell "Start-Process CMD -Args '/c', '\"\"%~dp0start_server.bat\"', '\"A B\"\"' -Verb RunAs"
复制代码 源于:cmd /c ""%~dp0a.bat" "参数""
参考:http://www.bathome.net/viewthrea ... mp;page=1#pid264491 |