Link to home
Start Free TrialLog in
Avatar of Rocking
Rocking

asked on

copy file from one system to another

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

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)