[jcifs] couldn't get UNC path

adf afdf hong_mei_sun at yahoo.com
Fri Aug 1 04:30:03 EST 2003


I tried to use the following the code to get a file's
UNC path. But it didn't work.

File f = new File("O:\path\file.txt");
SmbFile s=new SmbFile(f.toURL());
String path = SmbFile.getUncPath();

It will give me like:
path = \\\O:\path\file.txt

any thing wrong?

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the jcifs mailing list