Retrieving the UNC path for a file
807588Mar 31 2009 — edited Apr 1 2009Hello everyone.
I've searched for an answer for the last 4 hours and I just couldn't find anything to work for me.
I need to get the UNC name of a file.
I have tried using http://jcifs.samba.org/src/docs/api/jcifs/smb/SmbFile.html#getUncPath() , in combination with the File#toURI()#toURL , but with no succes, because the UNC path returned is not a valid one.
Does anyone else have any idea?
Or do you know how can I make a folder shareable under windows from java code?
Thanks,
Best regards,
Domi