System.Diagnostics.Process proc0 = new System.Diagnostics.Process(); proc0.StartInfo.FileName = 'cmd'; proc0.StartInfo.WorkingDirectory = Path.Combine(curpath, 'snd'); proc0.StartInfo.Arguments = omgwut;
And now for some background…
string curpath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
omgwut is something like this:
copy /b a.wav + b.wav + … + y.wav + z.wav output.wav
And nothing happens at all. So obviously something’s wrong. I also tried ‘copy’ as the executable, but that doesn’t work.
Try the prefixing your arguments to cmd with
/C, effectively sayingcmd /C copy /b t.wav ...According to
cmd.exe /?using/C <command>For your code, it might look something like
Notes:
cmd.exe copy ...you’ll see that the copy doesn’t occur.2,003characters in .NET Framework applications and488characters in .NET Compact Framework applications.’System.IOclasses to open the files and manually concatenate them.