Is it possible to run a windows forms app as the logged in user, but make the app save files using different user credentials?
I know the following is incorrect, but what I mean is something along those lines:
var userWithPrivileges = new NetworkCredential(userName, password);
File.Copy(sourceFileName, destFileName, overwrite: true, userWithPrivileges);