摘要: 例如:如果使用命令“dir”连续查询三次目录信息: String command = "dir" ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = false; // 需要对进程执行读写流 阅读全文
posted @ 2021-02-22 17:34 蜜铀 阅读(1481) 评论(0) 推荐(0) 编辑
摘要: 这里是压缩代码,后面是拆解说明。 执行且不读取流 String cmd = "dir"; Process process = new System.Diagnostics.Process() { StartInfo = new System.Diagnostics.ProcessStartInfo( 阅读全文
posted @ 2021-02-22 14:07 蜜铀 阅读(1013) 评论(0) 推荐(0) 编辑