string lameEXE = @"D:lame3.100lame.exe"; string lameArgs = "-b 128"; string wavFile = @"d:d.mp3"; string mp3File = @"d:ff.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; Console.WriteLine(exitCode);