1

I need to copy files to and from some windows network share, like \\compname\admin$ for example. Right now we use JNI and open a connection using WNetAddConnection2 and then WinAPIs CopyFile to operate.

Source machine has Windows OS.

Isn't there another simpler Java way?

Vic
  • 21,473
  • 11
  • 76
  • 97

2 Answers2

3

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java.

James Allman
  • 40,573
  • 11
  • 57
  • 70
0

A solution we have involves the j-interop library and WMI. May be worth a look. However, we are coming from Linux copying to Windows. I don't know what platform your source is from the question.

joebalt
  • 969
  • 1
  • 12
  • 24