Fixed: Don't show cmd.exe window when fpcalc runs

This commit is contained in:
ta264 2019-06-09 21:16:50 +01:00
parent b52538c54f
commit ace83498cd
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,7 @@ namespace NzbDrone.Core.Parser
p.StartInfo.FileName = path;
p.StartInfo.Arguments = "-version";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
try
@ -135,6 +136,7 @@ namespace NzbDrone.Core.Parser
p.StartInfo.FileName = _fpcalcPath;
p.StartInfo.Arguments = $"-version";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
@ -238,6 +240,7 @@ namespace NzbDrone.Core.Parser
p.StartInfo.FileName = _fpcalcPath;
p.StartInfo.Arguments = $"{_fpcalcArgs} \"{file}\"";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;