I have the following code:
builder = new ProcessBuilder("cmd");
builder.inheritIO();
p = builder.start();
p.waitFor();
And in the created commandline, I would like to write e.g. "dir". How is this possible?
Best regards
Edit: I have to run multiple commands and I can't use multiple cmds for that.