mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Quote output path as it may contain spaces
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user