I am able to launch cmd.exe and pass arguments with below:
Examples tested:
exec(new String[] {"cmd", "/K", "start", "cmd.exe", "/K","help"});
exec(new String[] {"cmd", "/K", "start", "cmd.exe", "/K","ping 127.0.0.1"});
I am able to launch cmd.exe and pass arguments with below:
Examples tested:
exec(new String[] {"cmd", "/K", "start", "cmd.exe", "/K","help"});
exec(new String[] {"cmd", "/K", "start", "cmd.exe", "/K","ping 127.0.0.1"});