I want to copy one file from system1 to system2. both these system are in the same network. the file is present in a shared folder in system1. i have a username and password to access that location. how can i write a javacode to perform this?
Share
Does your solution have to use plain Java? If not, it would be better to use existing file transfer utilities, like
scpif you’re using *nix computers.If the answer to my question is yes, then sockets are the way to go. Apache Commons libraries like net and io might also be useful.