I want to copy a file into a folder, where I need admin permission.
Example:
string oldPath = "C:\\Users\\Sony\\Desktop\\a.txt";
string newPath = "C:\\ProgramData\\Microsoft\\Network\\a.txt";
int main (){
MoveFile(oldPath.c_str(), newPath.c_str());
// now I have to send the permission, because the file won't be copied
return 0;
}
How can I send these permission to copy a file into such folders?
Thanks guys