获得path变量 import java.io.*;public class Exec { public static void main(String[] args) throws IOException { Runtime r = Runtime.getRuntime(); Process p = r.exec("cmd"); PrintWriter writer = new PrintWriter( java点滴 2023-11-17 33 点赞 0 评论 50 浏览