Solved

copy file from one system to another

Posted on 2014-07-24
2
188 Views
Last Modified: 2014-07-26
hi,

I have to copy file from one system to another,but to connect to the source system authentication needs to be done ?
How to access the source path after providing valid credentials.

	IOUtils.copy(new FileInputStream("\\network system\\d:\\temp"),
					new FileOutputStream("C:\\temp_del\\abc.txt"));

Open in new window

0
Comment
Question by:Rocking
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40217322
Try using this API

http://jcifs.samba.org/
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40221524
:)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question