Minor change for process

This commit is contained in:
niksedk 2021-11-28 19:57:33 +01:00
parent 99212564ff
commit 8382a5ad12
3 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,8 @@ namespace Nikse.SubtitleEdit.Forms
}
parameters = string.Format(fFmpegWaveTranscodeSettings, inputVideoFile, outWaveFile, audioParameter);
}
return new Process { StartInfo = new ProcessStartInfo(exeFilePath, parameters) { WindowStyle = ProcessWindowStyle.Hidden } };
return new Process { StartInfo = new ProcessStartInfo(exeFilePath, parameters) { WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true } };
}
private void buttonRipWave_Click(object sender, EventArgs e)

View File

@ -70,7 +70,8 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Tesseract
process.StartInfo = new ProcessStartInfo(dir + "tesseract.exe")
{
UseShellExecute = true,
Arguments = "\"" + inputFileName + "\" \"" + outputFileName + "\" -l " + languageCode
Arguments = "\"" + inputFileName + "\" \"" + outputFileName + "\" -l " + languageCode,
CreateNoWindow = true,
};
if (!string.IsNullOrEmpty(psmMode))

View File

@ -38,7 +38,8 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Tesseract
{
UseShellExecute = true,
WindowStyle = ProcessWindowStyle.Hidden,
Arguments = $@"""{imageFileName}"" ""{tempTextFileName}"" -l {languageCode}"
Arguments = $@"""{imageFileName}"" ""{tempTextFileName}"" -l {languageCode}",
CreateNoWindow = true,
};
if (!string.IsNullOrEmpty(psmMode))