ProcessStartInfo proc = new ProcessStartInfo(); proc.UseShellExecute = false; proc.CreateNoWindow = true; proc.FileName = @"C:\Users\e1040719\Desktop\demo.bat"; proc.WorkingDirectory = @"C:\Users\e1040719\Desktop"; proc.Verb = "runas"; Process.Start(proc); 本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/3284539.html,如需转载请自行联系原作者
c# 执行批处理文件
最新推荐文章于 2021-12-28 22:00:00 发布