ProcessBuilder and Process.waitFor(), how long does ist wait?
问题 I am executing an .exe-file from java, using the ProcessBuilder class and the Process class. To explain what I am doing: builder = new ProcessBuilder(commands); builder.redirectErrorStream(true); Process process = builder.start(); process.waitFor(); I just wanted to know, for how long is "waitFor()" waiting? Is it waiting until my .exe is executed, or is it waiting till its execution is finished? My .exe is a compiled AutoIt-script. That means, that there could be interactions like mouse