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:
parent
109ae7faff
commit
19c5377cc9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user