开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜