Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该ProcessBuilder.directory()方法的用途是什么以及如何使用它?它是否存储目录名称?
ProcessBuilder.directory()
正如javadoc所说,directory()方法返回进程的当前目录,工作目录,如果你传递一个文件,它会将工作目录设置为那个文件