Remote installation with fuse
It is possible to mount a remote file system (usually including SMB / CIFS) with FUSE and samba . It might look something like this (if you have a mount point /windows )
# export USER=efrisch
Then you can access your directory (transparently) with
new File("/windows/ITS Tool/xml")
Pure Java solution (with JCIFS)
JCIFS provides SmbFile and that provides listFiles() , allowing something like
SmbFile[] files = new SmbFile("smb://10.50.90.18/ITS Tool/xml/").listFiles();
The related documentation for SmbFile gives the full format as
SMB: // [[[domain]; username [: password] @] server [: port] / [[share / [dir /] file]]]? [PARAM = value [param2 = value2 [...]]]
and also notes that all SMB URLs representing workgroups, servers, folders, or directories require an end slash '/'.
source share