VBScript verwijdert nu de tijdelijke bestanden die worden gebruikt om de code in te schrijven.

This commit is contained in:
2011-06-13 15:20:12 +00:00
parent 33ed917611
commit 75bb21aed6

View File

@@ -29,6 +29,7 @@ public class VBScript {
String line = input.readLine(); String line = input.readLine();
found = line != null && line.equals(program); found = line != null && line.equals(program);
input.close(); input.close();
file.delete();
return found; return found;
} }
@@ -47,6 +48,7 @@ public class VBScript {
+ "Next\n" + "Next\n"
+ "Set WSHShell = Nothing\n", program)); + "Set WSHShell = Nothing\n", program));
fileWriter.close(); fileWriter.close();
file.delete();
Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath()); Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
} }
} }