I have 2 windows machines: windows 7 and windows 2008 server R2. I am looking for a way to download a remote file from one windows machine to another using Java JSCH lib.
Asked
Active
Viewed 796 times
1 Answers
1
use copy command giving instead of both arguments IPs to your windows machines:
copy \\first_windows_machine\c$\dest_file.txt \\second_windows_machine\c$\download_folder\
first_windows_machine - is the one from where you want to take the file
second_windows_mahcine - where you want to save that file
For implementing this in java, you can use answer from here: file transfer using java
-
Thank you, I handled my issue using sources from your answer, will add a full answer for archive. – Anahit Serobyan Aug 14 '15 at 11:26