Skip to main content

Listing the shared folder on a remote computer

No replies
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

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