By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Creating a directory that can't be moved

P: 2
I want to create a directory programmatically in vb express 2010. I know how to create the directory and subdirectories but I don't know how to make the directory "locked". Typically users in our server, move by mistake the directory into another directory and then we have to spend long hours looking for the file. I would like that the directory becomes locked and nobody can move it. Any ideas?
Jun 4 '13 #1
Share this Question
Share on Google+
2 Replies

P: 298
This seems to be more a question for your IT department. The folders' permission must be limited with Network security as to give only certain rights to the users so they cannot move and/or delete the folders while giving your application the rights to create them.
Jun 11 '13 #2

Expert 5K+
P: 8,434
Appropriate network permissions are definitely the way to go.

However, it occurs to me that another (kind of ugly) workaround might be to have an application (on the server, I guess) keep a file open in that directory at all times.

If the network OS is anything like plain ol' single-PC Windows, it shouldn't let anyone delete, rename or move the directory.
Jul 20 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.