简体   繁体   中英

Remote file transfer between windows system using Java

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.

使用套接字连接(以前的IP配置)到SocketServer并传输文件。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM