Java Runtime Exec for VBA script with arguments
- by Holograham
I am trying to use Runtime exec() to run a vba script with arguements. I am having trouble passing in the args. I think I need to use the String[] overloaded method for exec.
Currently this works:
String command = "cmd /c \"\\concat2.vbs\""
Process p = Runtime.getRuntime().exec(command);
But I want to run that with arguments and if I do this
…