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