Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrieving the UNC path for a file

807588Mar 31 2009 — edited Apr 1 2009
Hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2009
Added on Mar 31 2009
4 comments
361 views