How is it possible to pass environment variables as arguments to a System.Diagnostics.Process()? Using a variable path fails for some reason. For instance, I'm trying to open explorer at the path %windir%, this fails:
program: explorer.exe args: /n, /e, %windir%
var f = new System.Diagnostics.Process();
f.StartInfo.WorkingDirectory = Path.GetDirectoryName(Program);
f.StartInfo.FileName = Program;
f.StartInfo.Arguments = !string.IsNullOrWhiteSpace(Params) ? Params : null;
f.Start();