开发者

How to Run cmd as admin and pass command to it? [duplicate]

开发者 https://www.devze.com 2023-04-09 08:00 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: To run cmd as administrator along with command?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

To run cmd as administrator along with command?

I want to run a cmd using administrator privileges and then pass the command to the process that is running cmd as administrator.

I don't want to use pr开发者_Python百科oc.standardinput to pass the command is there any other method?


You need to use the next api function from advapi32.dll CreateProcessAsUser

0

精彩评论

暂无评论...
验证码 换一张
取 消