my dog learned polymorphism*
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


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: 19697
    
  20

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: 19697
    
  20

Not that I'm aware of.
 
GeeCON Prague 2014
 
subject: Access Content from remote FileShare