I
ilya
I try to execute the command: Runtime.getRuntime().exec("%ComSpec% /c
start calc") and java gives me the error:
java.io.IOException: Cannot run program "%ComSpec%": CreateProcess
error=2, The system can not find the file specified.
But if I execute in such way Runtime.getRuntime().exec("cmd /c start
calc"), all is ok.
What is the reason?
start calc") and java gives me the error:
java.io.IOException: Cannot run program "%ComSpec%": CreateProcess
error=2, The system can not find the file specified.
But if I execute in such way Runtime.getRuntime().exec("cmd /c start
calc"), all is ok.
What is the reason?