开发者

How to Run(launch) elevated command prompt programmatically in Vista

I'm trying to install some files from a batch file (through code).开发者_高级运维 However the command should only run as "elevated command" in Vista and Windows 7 Is there any way this can be done programitically?

I'm launching the batch file by calling "CreateProcess" in VC++/MFC code.

Thanks


ShellExecute(NULL, L"runas", ...);

For whatever reason the "runas" verb isn't documented in MSDN but...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜