0

I need to copy a file into a folder using elevated privileges. A user prompt is fine.

IO.File.Copy(vSrcPath, vDestPath)

I'm getting

UnauthorizedAccessExption: Access to the path ... is denied.

How can I copy using admin privileges?

I tried finding the answer but most questions focus on avoiding the prompt. That isn't a problem.

D_Bester
  • 5,723
  • 5
  • 35
  • 77

0 Answers0