I have a situation were i want to have the access locked for anyone that tries to mess with a folder. However i want my software to be able to access that folder so it can read or write to the folder. Is this possible and if so how?
If you have win zip you can pass word protect the folder after you zip it. Or Google for software that will let you protect files and folders with a password.
In order for your application to be able to access a folder but disallow access to unauthorised users, two things need to happen:
1) Your application will have to run as a service or via a batch file using Runas with a different user account to the currently logged on person.
This is in order for it to have different security permissions to the current user to permit access to the folder.
2) The folder itself will have to have NTFS permissions set on it to only allow access to the account used by RunAs or the service.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.