L'exécution de commandes cmd via .NET?

System.Diagnostics.Process proc0 = new System.Diagnostics.Process();
proc0.StartInfo.FileName = "cmd";
proc0.StartInfo.WorkingDirectory = Path.Combine(curpath, "snd");
proc0.StartInfo.Arguments = omgwut;

Et maintenant, pour certains d'arrière-plan...

string curpath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);

omgwut est quelque chose comme ceci:

copier /b un.wav + b.wav + ... + y.wav + z.wav de sortie.wav

Et il ne se passe rien du tout. Alors, évidemment, quelque chose ne va pas. J'ai aussi essayé "copie" de l'exécutable, mais qui ne fonctionne pas.

OriginalL'auteur unrelativity | 2009-03-27