From d491b1fc8a403c04d70bd14c096d95a506b5ec33 Mon Sep 17 00:00:00 2001 From: Jaex Date: Sat, 21 Jan 2023 09:40:08 +0300 Subject: [PATCH] fixed #6690: Use temp path --- ShareX.ScreenCaptureLib/Forms/FFmpegOptionsForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShareX.ScreenCaptureLib/Forms/FFmpegOptionsForm.cs b/ShareX.ScreenCaptureLib/Forms/FFmpegOptionsForm.cs index ded311beb..f386fa082 100644 --- a/ShareX.ScreenCaptureLib/Forms/FFmpegOptionsForm.cs +++ b/ShareX.ScreenCaptureLib/Forms/FFmpegOptionsForm.cs @@ -513,7 +513,7 @@ private void btnTest_Click(object sender, EventArgs e) ProcessStartInfo psi = new ProcessStartInfo() { FileName = "cmd.exe", - WorkingDirectory = Path.GetDirectoryName(Options.FFmpeg.FFmpegPath), + WorkingDirectory = Path.GetTempPath(), Arguments = $"/k {Path.GetFileName(Options.FFmpeg.FFmpegPath)} {Options.GetFFmpegCommands()}", UseShellExecute = true };