I am trying to run VLC from my C# Console Application, but I cannot. I know there are other similar questions (e.g. Launching process in C# Without Distracting Console Window and C# Run external console application and no ouptut? and C#: Run external console program as hidden) and from them I derived the following code:
Process process = new Process();
process.StartInfo.FileName = "C:\\Users\\XXXXX\\Desktop\\VLC\\vlc.exe";
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
//process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.Arguments = " -I dummy";
process.Start();
However, the console still shows up, both when I comment and uncomment the WindowStyle line. What's wrong?