|
|
Re: Java IO problems
|
Posted: Aug 19, 2005 12:09 AM
|
|
A shot in the dark here - i.e. its just a guess based on glue logic (wrt what I have used) but shouldn't regular IO operations only have access to stuff on the local file system. Even if you map a drive to your PC, its still not local - I don't think it resides on the local file system. Unless you are using classes of the *.net package, I don't see how you should be able to access that Folder.
Yes you will see it by going to dos and typing M: cd my_shared_folder
But I don't think Java's regular I/O functions will be able to access it.
You will definitely have to access it via java.net.* modules. If in the String the URI you entered is M:\blah\blah\blah
That will obviously not work either coz that will probably not be understood as a path.
You will have to connect via Client\Server type code and hopefully run a server like tomcat putting the file in a directory that is accessible, last time I toyed with that it was a director called web.
Or write your own server and if I'm not mistaken you could be able to designate a directory by means of your server that will be accessible to Client requests.
Once again I may be wrong, but this is the only explanation that makes sense. Mapping to me seems to be a simple Windows Hack and remains that.
On the flip side if you play around with Google there may be some implementations that you may use that take advantage of the Mapping facility - but I'm nto aware of any.
Spike
|
|