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"
|
+ "Next\n"
|
||||||
+ "Set WSHShell = Nothing\n", program));
|
+ "Set WSHShell = Nothing\n", program));
|
||||||
fileWriter.close();
|
fileWriter.close();
|
||||||
|
Process process = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
|
||||||
|
try {
|
||||||
|
process.waitFor();
|
||||||
|
} catch (InterruptedException e) {}
|
||||||
file.delete();
|
file.delete();
|
||||||
Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user