1
0
mirror of https://github.com/SirusDoma/VoxCharger.git synced 2024-11-12 01:30:46 +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");
Execute(
ConverterFileName,
$"{inputFileName} {output}" + (preview ? " preview" : string.Empty)
$"\"{inputFileName}\" \"{output}\"" + (preview ? " preview" : string.Empty)
);
return tempDir;
@ -29,7 +29,7 @@ namespace VoxCharger
{
Execute(
BuilderFileName,
outputFileName,
$"\"{outputFileName}\"",
inputDir
);
}
@ -43,7 +43,7 @@ namespace VoxCharger
var info = new ProcessStartInfo()
{
FileName = fileName,
Arguments = $"\"{args}\"",
Arguments = args,
WorkingDirectory = workingDir,
CreateNoWindow = true,
UseShellExecute = false,