private static string InvokeCmd(string cmdArgs)
{
string Tstr = "";
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start(); p.StandardInput.WriteLine(cmdArgs);
p.StandardInput.WriteLine("exit");
Tstr = p.StandardOutput.ReadToEnd();
p.Close();
return Tstr;
}

  

最新文章

  1. BootStrap_04之jQuery插件(导航、轮播)、以及Less
  2. allegro - 层叠相关参数
  3. 像素图的实时光照 Lighting on Pixel Art
  4. 抓包工具charles使用教程指南
  5. "运行时"如何解析类型引用
  6. orcale同一条语句运行速度差异问题
  7. 解决oracle_4031错误的方法
  8. 咖啡师之路:第一日一杯Espresso
  9. JSONPath使用
  10. Windows下基于ADS+J-Link 的ARM开发环境搭建
  11. 例10-10 uva10491(简单概率)
  12. Day 2 上午
  13. anaconda常用操作汇总
  14. windows server 简化设置
  15. tensorFlow(三)逻辑回归
  16. 动态iframe 分享
  17. Spring全家桶–SpringBoot Rest API
  18. oracle按照指定列分组合计group by rollup()
  19. nginx深入使用
  20. 廖雪峰Java1-2Java程序基础-2变量和数据类型

热门文章

  1. jdk源码分析ArrayDeque
  2. 用canvas绘制折线图
  3. 拖拽手势和清扫手势冲突时(UIPanGestureRecognizer和UISwipeGestureRecognizer冲突时)
  4. iOS xml文件的解析方式 XMLDictionary,GDataXMLNode,NSXMLParser
  5. CAS Client集群环境的Session问题及解决方案
  6. 解决ie6下li左浮动文字换行的问题
  7. Unix&Linux技术文章目录(2015-12-22更新)
  8. ZooKeeper:Java客户端网络处理
  9. Oracle学习笔记九 数据库对象
  10. 2.sort 排序命令讲解