2 Replies Latest reply: Feb 7, 2012 10:23 AM by 915411 RSS

    Listing the shared folder on a remote computer

    915411
      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!