c# 执行dos命令问题

wangs_1 wangs_1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
大家帮我看看问题出在哪里,执行完后,一点效果也没有。(应该弹出dos出口才对)
string fileName = Path.Combine(Path.GetDirectoryName(this.GetType().Assembly.Location), "moveuser.exe");
ProcessStartInfo expressStartInfo = new ProcessStartInfo();
expressStartInfo.FileName =fileName;
expressStartInfo.Arguments = txtSource.Text.Trim() + " " + txtPurPose.Text.Trim() + " " + "/y/k";
expressStartInfo.CreateNoWindow = true;
expressStartInfo.RedirectStandardError = true;
expressStartInfo.RedirectStandardInput = true;
expressStartInfo.RedirectStandardOutput = true;
expressStartInfo.UseShellExecute = false;
using (Process expressProc = new Process())
{
expressProc.StartInfo = expressStartInfo;
expressProc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
expressProc.Start();
//expressProc.WaitForExit();


}
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
wangs_1
C# 111,130 成员 642,541 内容