When my code tries to access the files in a certain folder, a bunch of permission denials are thrown back at me. How can I let the program access the folder using a certain user/permission set?
Any help is appreciated.
When my code tries to access the files in a certain folder, a bunch of permission denials are thrown back at me. How can I let the program access the folder using a certain user/permission set?
Any help is appreciated.
Wouldn't that defeat the whole purpose of having permissions to start with?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I understand your point, but there should be a way so that I can tell the code to use this user's permission template when trying to access that folder. e.g. using SYSTEM, or using a specific user account.
Last edited by Opel_Corsa; 01-23-2007 at 04:08 PM.
Use the windows feature which allows you to "run as.." another user.
Just right-click on the executable.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Thanks. Hoewer I just managed to fix it in my code.