how do I go about repeating
if (file.getName().contains("wmv")) { applicationPath = "C:\\Program Files\\Windows Media Player\\wmplayer.exe"; }
Runtime.getRuntime().exec(applicationPath + " \"" + file.getAbsolutePath() + "\"");
then? do I just go else if? (Horribly stupid question, I know.)