run cmd as administrator command line的相關文章
How do you run a command as an administrator from the Windows shell? - Stack Overflow

How do you run a command as an administrator from the Windows shell? - Stack Overflow

瀏覽:1180
日期:2025-06-26
All you have to do is use the runas command to run your program as Administrator (with a caveat). runas /user:Administrator "cmdName parameters" In my case, this was runas /user:Administator "cmd.exe /C %CD%\installer.cmd %CD%" Note that you must use ...看更多