args2[0] = aws args2[1] = s3 args2[2] = cp args2[3] = C:\TEMP\Test1.TXT args2[4] = <s3 bucket="" name=""> Process objProcess = new Process(); objProcess.StartInfo.FileName = "cmd.exe"; objProcess.StartInfo.Arguments = args2[0] + " " + args2[1] + " " + args2[2] + " " + args2[3] + " " + args2[4]; objProcess.StartInfo.CreateNoWindow = false; objProcess.Start(); objProcess.Close(); It is opening the command prompt only. Not executing and not closing.
var process = new Process { StartInfo = new ProcessStartInfo("Httputil.exe") { Arguments = "\"aws s3 cp\" C:\\TEMP\\Test1.TXT <s3 bucket=\"\" name=\"\"" } }; process.Start();
cmd.exe
FileName
aws.exe
aws
/c
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)