I have an xp box with file sharing open and can access files through the LAN, but how do I do this in
Java?
currently I have:
which works perfectly in allowing me to list the file, but say the file is some movie.avi, or a program.exe, how do I tell Java to execute that file using the default program?
Basically what I'm looking for is exactly like:
Desktop.getDesktop().open(new File("C:\..."))
Only this time I'm using SmbFile to allow credentials (and thus log into a share server).
Is there a SmbDesktop or something?
It seems like this should be very easy: I have access to the file... all I want to do is run it.
~Thanks in advance!
[edit: this is the exact same problem as
https://coderanch.com/t/509245/Servlets/java/open-File-server-JCIFS-or#2301848
only the fix given is to run a command line which is only a workaround]