This commit is contained in:
2020-05-19 22:40:56 +00:00
parent 2906c92af9
commit fad10e4f26

View File

@@ -52,12 +52,12 @@ namespace AyaNova.Util
// var FullRunCommand=$"/C {BackupUtilityCommand} {Arguments}";
//for Windows need to pass to cmd.exe because often have command line piping etc
var args=$"{cmd} {arguments}";
var args=$"/C {cmd} {arguments}";
using (var process = new Process())
{
process.StartInfo = new ProcessStartInfo
{
FileName = "cmd.exe /C",
FileName = "cmd.exe",
Arguments = args,
RedirectStandardOutput = true,
RedirectStandardError = true,