Fout in VBScript terminate methode hersteld.

This commit is contained in:
2011-06-13 20:40:57 +00:00
parent 4f9b6f5552
commit 61bf530a4b
3 changed files with 4 additions and 1 deletions

View File

@@ -48,7 +48,10 @@ public class VBScript {
+ "Next\n"
+ "Set WSHShell = Nothing\n", program));
fileWriter.close();
Process process = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
try {
process.waitFor();
} catch (InterruptedException e) {}
file.delete();
Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
}
}