Solved

copy file from one system to another

Posted on 2014-07-24
2
181 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 65
where is session ID cache stored 1 39
advertisement module in core php 4 89
Java and GPO 11 47
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now