This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Access Content from remote FileShare Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Access Content from remote FileShare" Watch "Access Content from remote FileShare" New topic
Author

Access Content from remote FileShare

Kriss Reddy
Ranch Hand

Joined: Mar 29, 2005
Posts: 54
Hello All,

I want to access files/folders on a remote file share but I do not have access to that file share but I am aware of another user (test user) account credentials who has access to this file share.

Example:
I access files on my machine like this:
File f = new File("C:\\test.txt");

I would like to know how to access content on this remote file share using my java program, more specifically how to pass on test user credentials to this remote file share.

What are my options to access this entire remote file share or some files or folders and by passing access credentials and how to pass these credentials?

Thanks,
Kriss.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Check out JCIFS.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Kriss Reddy
Ranch Hand

Joined: Mar 29, 2005
Posts: 54
Hi Rob,
Thanks for your reply and I am looking into JCIFS. Is there any other option other than JCIFS? Is it possible with java URI?

Kriss.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Not that I'm aware of.
 
Consider Paul's rocket mass heater.
 
subject: Access Content from remote FileShare
 
Similar Threads
File folder access through java with user name/password authentication
Samba share for a resource reference
Browsing hard drive file system using JSP
Discrepancy in listing of a file using Windows Explorer and JAVA I/O classes
"Allow Application to read data In" Block this alert