Thursday, June 16, 2011

how to execute audio converters using System.Diagnostics in c#(GoldWave)

System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo stratInfo = new System.Diagnostics.ProcessStartInfo();
stratInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
stratInfo.FileName = "C:\\Program Files\\GoldWave\\Goldwave.exe";
//stratInfo.Arguments = "/C copy /b image1.jpg + Archive.rar image2.jpg";
stratInfo.Arguments = "/process:MP3 C:\Users\jaganath\Desktop\bosco.VC2";

process.StartInfo = stratInfo;
process.Start();

1 comment: