简体   繁体   中英

How do i copy a file from one windows machine to other windows machine folder using java

How do i copy a file from one windows machine to other windows machine folder using java

is it possible using jcraft library com.jcraft.jsch.JSch.JSch ?or jcraft only copy to linux unix machines.

can you please provide the code.

thank you.

Try JCIFS: http://jcifs.samba.org/

"JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol"

Here is an example.

http://sanjaal.com/java/875/java-utilities/java-tutorial-using-jcifs-to-copy-files-to-shared-network-drive-using-username-and-password/

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