VBScript verwijdert nu de tijdelijke bestanden die worden gebruikt om de code in te schrijven.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user