bdonlan
bdonlan

Reputation: 231103

Creating folders in UAC-protected areas

I have an application which needs to be able to create folders in UAC-protected directories semi-automatically (the user will be there to approve the UAC notice, but I don't want to ask them to go do it themselves). The program does not otherwise need elevation; is there a common call that can be used to leverage Explorer's built in elevation prompts for this, or must I implement my own elevated helper component to do this?

Upvotes: 2

Views: 524

Answers (1)

Cosmin
Cosmin

Reputation: 21416

This is usually done by creating a separate process with the "runas" verb:

This process can perform any operations which require elevation.

Upvotes: 4

Related Questions