1
0
mirror of https://github.com/SirusDoma/VoxCharger.git synced 2024-11-28 01:10:49 +01:00

Fix path with whitespace

This commit is contained in:
Ghastlcon 2022-02-05 14:34:09 +08:00 committed by GitHub
parent 109ae7faff
commit 19c5377cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ namespace VoxCharger
string output = Path.Combine(tempDir, $"{Directory.GetFiles(tempDir).Length}.wav"); string output = Path.Combine(tempDir, $"{Directory.GetFiles(tempDir).Length}.wav");
Execute( Execute(
ConverterFileName, ConverterFileName,
$"{inputFileName} {output}" + (preview ? " preview" : string.Empty) $"\"{inputFileName}\" \"{output}\"" + (preview ? " preview" : string.Empty)
); );
return tempDir; return tempDir;
@ -29,7 +29,7 @@ namespace VoxCharger
{ {
Execute( Execute(
BuilderFileName, BuilderFileName,
outputFileName, $"\"{outputFileName}\"",
inputDir inputDir
); );
} }
@ -43,7 +43,7 @@ namespace VoxCharger
var info = new ProcessStartInfo() var info = new ProcessStartInfo()
{ {
FileName = fileName, FileName = fileName,
Arguments = $"\"{args}\"", Arguments = args,
WorkingDirectory = workingDir, WorkingDirectory = workingDir,
CreateNoWindow = true, CreateNoWindow = true,
UseShellExecute = false, UseShellExecute = false,