I'm trying to run SoX command using ProcessStart but it's giving me an error with Access denied, i've made sure all admin access are in place not sure what else could be causing this error?
var startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\Data\sox1441";
startInfo.Verb = "runas";
startInfo.Arguments = ("sox -c 2 -b 24 -r 48000 --buffer 8000 -t waveaudio -d apple.wav trim 0 3");
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = false;
startInfo.WorkingDirectory = @"C:\Data\";
using (Process soxProc = Process.Start(startInfo))
{
soxProc.WaitForExit();
}