| Author |
localnet access
|
Agapios Hartzoulakis
Greenhorn
Joined: Oct 13, 2005
Posts: 17
|
|
Hi, I'm trying to access the files in a directory of another pc in the intranet. The problem is that the access to this pc requires a password. I'm using a filechooser to do this. When i press the button to access the files of this directory nothing happens! I would be very happy if someone could give me an advise of what can i do to get at least a prompt to enter the password and get in! Thanks in advance
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24040
|
|
I've deleted the other copy of this you just posted to the I/O forum. Please see this document for an explanation. Regarding your question: this is utterly specific to whatever operating system you're working with -- I'm assuming you're talking about Windows "shares", but it could be anything. You won't get any useful answers without describing your problem with some more specific details about the platform.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Agapios Hartzoulakis
Greenhorn
Joined: Oct 13, 2005
Posts: 17
|
|
Sorry, I hadn't read that rule. About the problem: I'va made a mistake. I'm trying to access files in an intranet (not a localnet as i wrote by mistake). There are some p/cs in a building and some others in another. All the p/cs run Windows XP. I want to make an application to access the files of every p/c in the intranet. I can do it with the search option of Windows just by searching for example (\\192\168\c:\...). Some of the p/cs require a password so i just type in when Windows ask for it in the prompt box. Now in my application: I'm using a FileChooser and i'm entering the IP address in the "File name " box. When no password is required i can see the files of the directory that I want. But when password is required nothing happens. I guess it will be a way so that to be prompted for the password ang simply get in. I copy->paste below some of my codes to help you understand what I'm looking for. ... fc=new JFileChooser(); fc.setFileSelectionMode(1); fc.setControlButtonsAreShown(false); .... (in ActionPerformed method) fc.setCurrentDirectory(new File(path)); //where path is the IP address that I want to access I later use a FileReader and a BufferReader to read the files in the directory of the remote p/c Hope to help you understand. Any advice will be much appreciated.
|
 |
 |
|
|
subject: localnet access
|
|
|