I recently looked into browsing Network (and Network Shares to enumerate folders and files onto them) running a .Net application and I found a solution that work fine for now using WMI or PInvoke. But I was wondering about cross-platform using Mono...
My solution seems to work only on Windows (but maybe i'm wrong ?), how to handle this properly to run on a Linux (and Windows as well) station ?
Should I detect the current OS and call a prompt for a standard command line tool which would be parsed to get the same result on different systems ?
For Linux, should I parse the result of smbclient from Process ? (See http://www.cyberciti.biz/tips/howto-find-for-available-smb-shares.html)