源码:
public static String createFile(){ String cmd = "echo \"hhahah\" > F:\\aaa\\azzz.txt"; File file = new File("C:\\Windows\\System32"); StringBuilder result = new StringBuilder(); try { // 在单独的进程中执行指定的字符串命令
源码:
public static String createFile(){ String cmd = "echo \"hhahah\" > F:\\aaa\\azzz.txt"; File file = new File("C:\\Windows\\System32"); StringBuilder result = new StringBuilder(); try { // 在单独的进程中执行指定的字符串命令