On Fri, Jun 12, 2009 at 7:57 AM, Jijesh<[email protected]> wrote: > How can i access a shared folder, and get directory informations through > code. I need to save and move files in a shared folder in the LAN network. i > tried using DirectoryInfo but am not able to get the directories listed. > Please help.
If my understanding is correct, you are trying to use a UNC path (like "\\server\share\file") under Mono on Linux. This is not possible. On Windows, this functionality is provided not by the .NET runtime, but by the Windows file manipulation APIs. Supporting this on Linux would require either modifying Mono to include a Samba client (which would be awkward, at best) or modifying libc to understand UNC paths. Neither of these are likely to happen. (It follows from the above that Mono running on Windows will have no problems at all accessing UNC paths.) You might instead want to look at smbmount, which will let you mount an SMB file share onto a directory. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
