This commit is contained in:
@@ -52,12 +52,12 @@ namespace AyaNova.Util
|
|||||||
// var FullRunCommand=$"/C {BackupUtilityCommand} {Arguments}";
|
// var FullRunCommand=$"/C {BackupUtilityCommand} {Arguments}";
|
||||||
|
|
||||||
//for Windows need to pass to cmd.exe because often have command line piping etc
|
//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())
|
using (var process = new Process())
|
||||||
{
|
{
|
||||||
process.StartInfo = new ProcessStartInfo
|
process.StartInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
FileName = "cmd.exe /C",
|
FileName = "cmd.exe",
|
||||||
Arguments = args,
|
Arguments = args,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
RedirectStandardError = true,
|
RedirectStandardError = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user