Setting NTFS Permissions with VB.Net

From: Grigs (Grigs_at_discussions.microsoft.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 07:39:01 -0700

Hello,

I've done VB for a while but an totally new to VB.Net. I am looking for specific code if possible for you. I need a way to set/change/remove permissions on folders and their sub-folders programmatically. I have seen this article...

http://support.microsoft.com/default.aspx?scid=kb;en-us;818362

Which I thought would do the trick, but it doesn't work for me. I get the error "Unspecified Error" right after this line:

objAce1.Trustee = CStr(objSIdHex)

I don't care if it is the code from the above link as long as it works. Or it can be new code. I am just having a difficult time finding something that works.

Please help!!

-- 
Thanx,
Grigs