i have a Server with several shared folders. I do not know their names, just the ipaddress.
My First try with:
File rootFolder = new File(rootFolderPath);
String[] strings = rootFolder.list();
did not work.
So is there a way in java to get all shared folders on a network share?
The JCIFS SMB client library enables Java applications to remotely access shared files and directories on SMB file servers(i.e. a Microsoft Windows “share”) in addition to domain, workgroup, and server enumeration of NetBIOS over TCP/IP networks.
refer http://jcifs.samba.org/src/docs/api/
refer http://jcifs.samba.org/src/docs/api/jcifs/smb/SmbFile.html#list%28%29