is it possible to create a code for this? (prevent access to a folder?) or do something similar to achieving this goal?
i just want that when my program is running. my application folder cannot be access through (example MyDocuments)
is it possible to create a code for this? (prevent access to a folder?) or do something similar to achieving this goal?
i just want that when my program is running. my application folder cannot be access through (example MyDocuments)
From what you are asking it sounds like you are trying to do this. The DirectorySecurity class also provides you means to work with permissions and access rights to folders, so you may want to do some research there. ..And here is one more article to assist you in your venture. Basically the DirectorySecurity class is an implementation of the Windows File System Security and allows you to modify the ACL of a directory by means of GetAccessControl, and SetAccessControl. I would recommend going through the MSDN documentation to understand how these work, because there are more than one object involved.
Set security privalage. R click on folder, properties security.