Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 以管理员身份运行 cmd 和命令?
我想使用管理员权限运行 cmd,然后将命令传递给以管理员身份运行 cmd 的进程。
我不想使用 proc.standardinput 来传递命令还有其他方法吗?
您需要使用 advapi32.dll CreateProcessAsUser中的下一个 api 函数