How can you access a shared folder using java? im trying to write read and write to a file on the shared folder. I tried doing it with FileReader and FileWriter, and everyone group as full control. It worked. But when I removed everyone, and placed specific members, access is already denied. The login used on my computer, by the way, we are using active directory domain for authentication, also has permission to access the shared folder, but still, denied. Is there a way to put your credentials in your java code, so it can be checked on the shared folder? or is there another way? Thanks.
can those specific members write to the folder with other tools? Try as one of this users: echo "foo" > U:\shared\foo.txt User-File-Permissions are handled very differently from OS to OS. Normally I would expect, a user who can write to a directory with method XY can write, using a java-application as well. I'm very sure this is no java-topic at all, but a MS-topic. [ May 04, 2004: Message edited by: Stefan Wagner ]
doing echo produces an access denied reply. oh well, i was thinking maybe there is a part in java where you can get the security information of the login used to log to the computer, and use it for authentication when accessing the shared folder. I'll look at MS topics then. Thank You.