How do you share a folder/directory programmatically? The DOS way is << net
share -sharename- = -location- >> I could use Process, but that means
launching a command window to execute the 'net share' command.
I want to do this from within C# code (Installer.Commit) . I don't care if
the answer is in C# or WIN32 API. If someone could show me how to wrap and
use Win32's NetShareAdd, I would appreciate it.
If you have any other ideas, I would also like to hear about them.
Right now we have to manually share some folders whenever we do an install.
Mistakes happen and when the folders aren't shared my application can't move
files into and out of the un-shared directory and customers get very
unhappy!
Thanks
Chuck