How to Share Directory programmatically?
-
Dear All, I have a directory in E drive, which I want to share and allow full control to aspnet via C# programming. I need simple code for it. :) With Regards Manoj
-
Dear All, I have a directory in E drive, which I want to share and allow full control to aspnet via C# programming. I need simple code for it. :) With Regards Manoj
You can make a call to the net command line application net share sharename=c:\folderToShare You can call this from C# using
System.Diagnostics.Process.Start ("net share myShareName=c:\\folderToShare");
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Bought a House! Judah Himango
-
Dear All, I have a directory in E drive, which I want to share and allow full control to aspnet via C# programming. I need simple code for it. :) With Regards Manoj
If you're wanting to do an API call though you'll need to P/Invoke NetShareAdd NetShareAdd Reference[^] Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/
-
If you're wanting to do an API call though you'll need to P/Invoke NetShareAdd NetShareAdd Reference[^] Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/
Thanks you a lot for help, Can you provide me a simple C# code for sharing directory and allow particular user full control(aspnet). I am working on using windows xp. :) Thanks & Regards Manoj