Process pro = Runtime.getRuntime().exec("cmd.exe /c chenglong>dd.txt");
我想用上面这段代码让cmd运行“chenglong.exe”,然后把“chenglong.exe”的输出值存入dd.txt中,为什么运行完txt文件中是空的呀
...全文
5784打赏收藏
Process pro = Runtime.getRuntime().exec();执行问题
Process pro = Runtime.getRuntime().exec("cmd.exe /c chenglong>dd.txt"); 我想用上面这段代码让cmd运行“chenglong.exe”,然后把“chenglong.exe”的输出值存入dd.txt中,为什么运行完txt文件中是空的呀