[jcifs] Set the modified date of a remote file.

Michael B Allen mba2000 at ioplex.com
Thu Oct 16 17:49:29 EST 2003

Please send all messages to the mailing list.

> Hi Mike,
> I'd tried to use the copyTo as follow, but it gives me the results:
> "Cannot copyTo Workgroups, servers, or shares"
> Does I get it wrong?
> Code:
> SmbFile src = createSmbFile ("", "", "itd_2678\\e\\pos2000.exe");
> SmbFile dest = createSmbFile ("", "", "itd_2678\\f\\");

That is indeed invalid. Try this for dest:

  SmbFile dest = createSmbFile ("", "", "itd_2678\\f\\pos2000.exe");

> try { src.copyTo(dest); }

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