嗨!
我想执行一个以上的从我的应用程序的命令,有1的问题,当我打开CMD和粘贴我的命令是没有问题的执行,但是当我想以执行从我ç#应用他们,说,"网络名称可以不会被发现。"这是我的命令promt功能的代码: static void PrintNETC()
{
Process p = new Process();
p.StartInfo = new ProcessStartInfo("CMD.exe");
p.StartInfo.UseShellExecute = true;
p.StartInfo.Arguments = String.Format(@"/k ""\\srv0\PrintNet T Designer\PNetTC.exe"" ""\\srv0\_PA\CEC\Mailing\Design\Export Coduri Postale.wf3"" -difDI1 ""d:\_tempAlex\Export Mailing\Output\refuz.txt"" -difDI2 ""d:\_tempAlex\Export Mailing\Output\reinnoire.txt"" -difDI3 ""d:\_tempAlex\Export Mailing\Output\rest.txt"" -difDI4 ""d:\_tempAlex\Export Mailing\Output\3d.txt"" -dataoutputtype CSV -o ""Export Mailing"" -f ""d:\_tempAlex\Export Mailing\Output\%m.%e""");
p.StartInfo.WorkingDirectory = @"C:\Windows";
p.StartInfo.CreateNoWindow = true;
p.StartInfo.ErrorDialog = false;
p.Start();
}
请帮帮忙!
我在做什么错?| Mitran Stefanita亚历|迈赫迪吴拉姆:创建一个批处理文件,并在该命令,然后执行批处理文件