12-14-2012, 02:12 PM
Hi Gintaras,
I know how to add the "run as admin" argument to a run command but how do I add that to a shortcut link e.g. using CreateShortcut
What I mean is that in Windows you can right click on a shortcut and it gives you the "run as admin" option but don't know how to set that up programatically.
Alternatively, I could just make the shortcut go to a little executable that run's the real target with the run as admin flag but a direct way would be more elegant.
Thanks,
Stuart
I know how to add the "run as admin" argument to a run command but how do I add that to a shortcut link e.g. using CreateShortcut
What I mean is that in Windows you can right click on a shortcut and it gives you the "run as admin" option but don't know how to set that up programatically.
Alternatively, I could just make the shortcut go to a little executable that run's the real target with the run as admin flag but a direct way would be more elegant.
Thanks,
Stuart