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...
精彩评论