Skip to main content

Listing the shared folder on a remote computer

No replies
c4rb0n
Offline
Joined: 2012-02-05
Points: 0

Hi someone who knows how you can list shared folders on a remote computer.
e.g. all folders on 192.168.1.1

It's possible to list folder/files if I enter a shared folder on the remote computer.
File dir = new File("\\192.168.1.1\share");
File[] files = dir.listFiles();
Somehow this doesn't work
File dir = new File("\\192.168.1.1");
File[] files = dir.listFiles();

Thanks!