I\'m (relatively) new to Java and I\'m trying to implement a .jar that runs a list of commands that in Windows XP\'s command prompt it would be:
cd\\ cd myfolder
Final Code which works :)
File folder = new File(dir); File fList[] = folder.listFiles(); for (File f : fList) { if (f.getName().endsWith(".png")) { f.delete(); }}