[jcifs] help required in copyto function

Michael B Allen mba2000 at ioplex.com
Sun Dec 28 00:36:30 GMT 2003

> i am having a sun solaris system and i am using jCIFS to create a smb client so
> that i can access directories and files from windows  machine.but inorder to use
> the CopyTo function present in the SMBFile i must know the source and destination
> smb path. but in the case of a solaris machine i know only the source path but the
> destination path is only in the form of local path and not of a smb path.
>                     how to copy a file/directory from a windows machine to a
> solaris machine using jCIFS ,if any alternate to the CopyTo is
> seen please tell me sir.

Just use plain SmbFileOutputStream, SmbFileInputStream, and so on. Look at


A program should be written to  model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the  potential for it  to be applied  to tasks that are
conceptually similar and, more  important, to tasks that have not
yet been conceived.

More information about the jcifs mailing list