Question : Programmatically setting folder/file permission for sharing folders

Hello!
I am trying to find a way of sharing a folder on the computer as a network share.
This is very easy done manually, but I need some help in finding out how this can be done programmatically.

I need to do the following (ASAP........)
1. Set a specified folder as a network share including access permissions.
2. Set the different properties for files/folders in the share

How can this be achieved?
Could somebody help me with some code examples?  Preferably in VB.NET, but C# is also OK.
Or links to pages that give this information?

Thank you for your input!
Jorn

Answer : Programmatically setting folder/file permission for sharing folders

http://www.codeproject.com/csharp/networkshares.asp
http://weblogs.asp.net/cumpsd/archive/2004/02/08/69403.aspx
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vbconintroductiontofilesystemobjectmodel.asp

HTH
Random Solutions  
 
programming4us programming4us