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
 
Back
Top