Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hi , I have problem regarding to jcifs for cross domain file copy  RSS feed

 
Sourabh Agrawal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi iam trying to copy a file in crossdomain using jcifs by samba protocol
by following code.

try {
SmbFile src = new SmbFile("c:/foldername/file.txt/");
SmbFile dest = new SmbFile("smb://domain;loginName assword@serverName/sharedFolder/");
src.copyTo(dest);
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
}

But it is throwing exception.
Invalid WorkGroup or servername.



///Please help me to solve this problem........
[ February 10, 2008: Message edited by: Sourabh Agrawal ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!