
string lameEXE = @"C:\path_of_lame\lame.exe";string lameArgs = "-b 128";string wavFile = @"C:\my_wavs\input.wav";string mp3File = @"C:\my_mp3s\output.mp3";Process process = new Process();process.StartInfo = new ProcessStartInfo();process.StartInfo.FileName = lameEXE;process.StartInfo.Arguments = string.Format( "{0} {1} {2}", lameArgs, wavFile, mp3File);process.Start();process.WaitForExit();int exitCode = process.ExitCode;
