Hi, I am trying to retrieve all the file names( including files in the sub folder) present in the given path.
It is working fine if the given path is present on my system. But if the path is a remote machine path then I am not able to retrive any files though I have got full permission on the given remote path.
I have written the method as follows. can some help me regarding this problem.
Have you tried two escaped backslashes? eg "\\\\machinename"
Chetan Parekh
Ranch Hand
Joined: Sep 16, 2004
Posts: 3636
posted
0
Originally posted by David O'Meara: Have you tried two escaped backslashes? eg "\\\\machinename"
David, It' working my end.
Thx
Vishnu Murthy
Ranch Hand
Joined: Jan 04, 2001
Posts: 56
posted
0
David, It' working my end also
Thanks Vishnu
Agapios Hartzoulakis
Greenhorn
Joined: Oct 13, 2005
Posts: 17
posted
0
Could i add a question to the above subject? What if i don't have full permission on the given remote path? What change must be done? Thanks
Chetan Parekh
Ranch Hand
Joined: Sep 16, 2004
Posts: 3636
posted
0
I believe you don’t required “full permission” to read any file remotely using java. You just need “read permission”.
JuanP barbancho
Ranch Hand
Joined: Oct 25, 2005
Posts: 52
posted
0
Hi,
Try to use / instead of \\
Thanks
Agapios Hartzoulakis
Greenhorn
Joined: Oct 13, 2005
Posts: 17
posted
0
I didn't explain my question well. I mean that a password is required from the system (Windows) to let me access the files in the remote system. Thanks
JuanP barbancho
Ranch Hand
Joined: Oct 25, 2005
Posts: 52
posted
0
Hi,
You could use a jakarta API for access to remote windows system.