Find out the directory
public class FindDirectories { public static void main(String[] args) { try { File pathName = new File("c:\\"); String[] fileNames = pathName.list(); for (int i = 0; i < fileNames.length; i++) { File tf = new File(pathName.getPath(), fileNames[i]); if(tf.isFile()) { System.out.println("File: " + tf.getCanonicalPath()); } else if (tf.isDirectory()) { System.out.println("Dir: " + tf.getCanonic..