JCIFS: Get SMB server/share textual descriptions?

View: New views
2 Messages — Rating Filter:   Alert me  

JCIFS: Get SMB server/share textual descriptions?

by Rob. S. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello there,

is there a method to get the textual description (comment/remark, however you
may call it) for an SMB server or share? Neither browsing the JCIFS docs nor
searching the 'net I got any wiser...

What I'm looking for is the additional information that gets listed for each
server name when you type "net view" on a Windows command line while logged on
to a domain.

Cheers,
Robert


Re: JCIFS: Get SMB server/share textual descriptions?

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Robert,

Not using the current public API no.

However, I think if you the following 'public':

  jcifs.smb.SmbFile.doMsrpcShareEnum()
  jcifs.smb.SmbShareInfo
  jcifs.smb.SmbShareInfo.remark
  jcifs.smb.FileInfo

then cast each element returned by doMsrpcShareEnum into SmbShareInfo,
then you can reach SmbShareInfo.remark which is what you want.

So it requires code changes but they should be very simple.

Mike

PS: Note that build instructions are secretly listed at the very
bottom of the README.txt.


On Tue, Nov 3, 2009 at 8:39 AM, Rob Schroeder <rs@...> wrote:

> Hello there,
>
> is there a method to get the textual description (comment/remark, however you
> may call it) for an SMB server or share? Neither browsing the JCIFS docs nor
> searching the 'net I got any wiser...
>
> What I'm looking for is the additional information that gets listed for each
> server name when you type "net view" on a Windows command line while logged on
> to a domain.
>
> Cheers,
> Robert
>
>



--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/