File Security

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi all

would like to know how to change file security. i.e. i have a file that i
need to give security permissions to user MYMACHINE\aspnet. how do i
programmatically do that?
instead of manually right mouse clicking on a file --> properties -->
security tab --> adding user there. i would like to do it programmatically?

Thanks
Jason
 
from the command line you can call "cacls" to modify access permissions.
You can call this using the Process class.
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top