1

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.

Anahit Serobyan
  • 432
  • 1
  • 6
  • 17

1 Answers1

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

Community
  • 1
  • 1
Mike
  • 26
  • 4