Fout in VBScript terminate methode hersteld.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user