How to change directory permissions so that user cant rename it and create/delete/modify files in it while programm working?
Thanks!
How to change directory permissions so that user cant rename it and create/delete/modify files in it while programm working?
Thanks!
Maybe you are looking for something like this: MSDN
Additionally there is already a question on StackOverflow with an simple answer: How to lock files
To do this, you would have to change permissions on the directory. You can do this using the FileIOPermission class in the System.Security.Permissions
namespace.