From da4d9fbf6745ef6b5c2cd1f70f83ec024127c2aa Mon Sep 17 00:00:00 2001 From: Nathan Rennie-Waldock Date: Mon, 14 May 2018 11:54:57 +0100 Subject: [PATCH] Quote output path as it may contain spaces --- MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 1dd0fbc2..5f023ccd 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -207,7 +207,7 @@ namespace DICUI { Process process = new Process(); process.StartInfo.FileName = "Release_ANSI\\DiscImageCreator.exe"; - process.StartInfo.Arguments = VAR_Type + " " + VAR_DriveLetter + " " + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " " + VAR_DriveSpeed + " " + VAR_Switches; + process.StartInfo.Arguments = VAR_Type + " " + VAR_DriveLetter + " \"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + "\" " + VAR_DriveSpeed + " " + VAR_Switches; Console.WriteLine(process.StartInfo.Arguments); process.Start(); process.WaitForExit();