Windows' share physical path
Hi,
I need to write a file on a NAS. I have the share path (suppose \\share\dir). How can I create a file on it? Do I need to know the physical path and use it to create a file? Can I obtain the physical path having the NAS path?
I'm talking about Java 1.4.03 (and Websphere).
Sorry for my english but it isn't my mother tongue.
Thanks
[368 byte] By [
CGambaa] at [2007-11-27 10:21:45]

# 1
Hi,
Ok, first of: Applet or Application? The main difference is: Applet - forget it, Application - you'll have to consult the file system. And that IS possible...
I see annother issue: shared paths. Are you talking about a LAN-based application? Windows shares have a bad reputaion for me, the security ... stinks ;-) you'll have to provide read and (oh dear...) WRITE permissions, to just about ... everyone. Be carefull with that, otherwise your (server) disk could end up as backup annex trashcan...
Message was edited by:
T01dev
# 2
Hi,
it's a web application (but running on an intranet).
I need to create a file on another machine, via LAN. I don't know the lan nor nas specifications. The infrastructure of this company is based on windows' shares so security isn't my problem :)
If i need the permissions, I can obtain it but I would like to know how to write on those shares.
Oh gosh my english is horrific! :)
# 6
> I use JCIFS for that. It works very well in a Windows
> network.
from a web application which should not have permission (enforced by the application server at the very least) to write anywhere outside its own deployment root?