Programmatically setting folder/file permission for sharing folders
Posted on 2004-09-22
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!