How to Run cmd as admin and pass command to it? [duplicate]
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
精彩评论