gpmattoo8
asked on
Java: Read a shortcut file present in network drive
File f = new File("\\\\bady\\SShare\\ma rt.xml");
Here mart.xml is a shortcut present in C:\Param\Bin
I get a java.io.FileNotFoundExcept ion:\\\\ba dy\\SShare \\mart.xml (The system cannot find the file specified)
Here mart.xml is a shortcut present in C:\Param\Bin
I get a java.io.FileNotFoundExcept
If it is in C:\param\bin why would not you read it as File f = new File("c:\\Param\\bin\\mart .xml"); - ?
They are probably trying to reference the network location rather than a local logical drive - makes sense. Can you access the file via alternate methods (explorer) using the same UNC?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.