[jcifs] Re: SmbFile(

Gary Rambo grambo at aventail.com
Tue Jun 1 23:00:37 GMT 2004


Michael B Allen wrote:
> 
> ... JCIFS will need to support RPCs before it can ... enumerate more than
> ~200 shares.
> 

Short of implementing the NetRShareEnum RPC you can comment-out the line

	maxDataCount = 4096

in the NetShareEnum.java constructor, so that maxDataCount will be 
initialized by the base class SmbComTransaction.java, (default 64K - 512 
bytes). This will enable collecting a lot more than ~200 shares with the 
NetShareEnum RAP, although the other NetShareEnum limitations still 
apply, of course.


Gary Rambo


More information about the jcifs mailing list