// if E:\mindprod is a directory, then these // four different ways of specifying it are // all equivalent in Windows. // You can use / or \ (coded as \\) // You can optionally have a trailing / or \. File dir1 = new File ( "E:\\mindprod" ); File dir2 = new File ( "E:\\mindprod\\" ); File dir3 = new File ( "E:/mindprod" ); File dir4 = new File ( "E:/mindprod/" );