using System.Diagnostics;

 

namespace WebApplication1

{

public partial class WebForm3 : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

Process pro = new Process();

pro.StartInfo.UseShellExecute = false;

pro.StartInfo.FileName = "cmd";

pro.StartInfo.Arguments = "/c dir > d:\\2.txt";

pro.StartInfo.RedirectStandardOutput = false;

pro.Start();

}

}

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2021-10-31
  • 2022-02-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案