Skip to main content

Listing the shared folder on a remote computer

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2012-02-05

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();