在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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(); } } } |
请发表评论