C#..如何用代码执行bat文件?

路径:D:尀X.bat
2024-12-31 22:57:13
推荐回答(2个)
回答1:

Process prs = new Process();
prs.StartupInfo.Path="cmd.exe";
prs.StartupInfo.param = @"c:/RunToStart.bat";
prs.Start();

回答2:

win+r