How to do remote file transfer between windows system using Java? In more detail, these windows systems are in same domain. I want Java API, which can transfer files (ASCII and Binary) between windows system by using assigned username, password, domain name and source and destination file location.
Asked
Active
Viewed 1,538 times
1
-
What user/pass? ActiveDirectory or Windows-Users or your own brew? – Fildor Nov 06 '12 at 14:21
-
Windows credential of each machine, so that user can access that machine. For every machine it may have different username and password. But while copying we can specify individual user to perform operations. – ravi Nov 06 '12 at 14:24
-
Have thought about using some SCP library? Did you do some research? Talking about Domains, I guess you want to use TCP/IP or at least some network transport? – Fildor Nov 06 '12 at 14:55
-
This may be related: http://stackoverflow.com/questions/199624/scp-via-java – Fildor Nov 06 '12 at 14:56
-
@Fildor : How can i use `JSch` over windows? – ravi Nov 06 '12 at 19:46
2 Answers
2
Use Sockets to connect (previous configuration by IP) to a SocketServer and transfer the files.

Typo
- 1,875
- 1
- 19
- 32
1
I've never done this, but I'd say you'll need to use the native Windows API to achieve this.
You could do it with JNI and C#. C# has File.Copy
(see example here) that makes use of native CopyFile function.
Alternatively, take a look at this question on SO.
Hope this gives you some leads.

Community
- 1
- 1

wulfgarpro
- 6,666
- 12
- 69
- 110