This class is used to create operating system processes.
Each ProcessBuilder instance manages a collection of process attributes. The start() method creates a new Process instance with those attributes. The start() method can be invoked repeatedly from the same instance to create new subprocesses with identical or related attributes.
文档中的用法示例:
Process p = new ProcessBuilder("myCommand", "myArg").start();
# 1 楼答案
如果我正确理解了,您可能需要考虑使用^{} :
文档中的用法示例: