[SK] Cody
[SK] Cody
CC#
Created by [SK] Cody on 2/14/2024 in #help
Execute batch file and keep cmd open
let it be shown in the CMD window, did the former and did not like the result to much, ill give that a shot
11 replies
CC#
Created by [SK] Cody on 2/14/2024 in #help
Execute batch file and keep cmd open
no dice, heres a small snippet of the function (using WPF), confirmed the constructed string for the arguments is correct. not entirely sure what im missing
c#
private int ExecuteProcess(string uatPath, string arguments)
{
Process uatProcess = new Process();
uatProcess.StartInfo.FileName = "cmd.exe";
uatProcess.StartInfo.Arguments = "/c " + uatPath + " " + arguments;
uatProcess.StartInfo.CreateNoWindow = false;
uatProcess.StartInfo.UseShellExecute = false;

uatProcess.Start();
uatProcess.WaitForExit();
return uatProcess.ExitCode
}
c#
private int ExecuteProcess(string uatPath, string arguments)
{
Process uatProcess = new Process();
uatProcess.StartInfo.FileName = "cmd.exe";
uatProcess.StartInfo.Arguments = "/c " + uatPath + " " + arguments;
uatProcess.StartInfo.CreateNoWindow = false;
uatProcess.StartInfo.UseShellExecute = false;

uatProcess.Start();
uatProcess.WaitForExit();
return uatProcess.ExitCode
}
11 replies
CC#
Created by [SK] Cody on 2/14/2024 in #help
Execute batch file and keep cmd open
no luck
11 replies
CC#
Created by [SK] Cody on 2/14/2024 in #help
Execute batch file and keep cmd open
i have not set those so i assume yes if they are false by default
11 replies
CC#
Created by [SK] Cody on 2/14/2024 in #help
Execute batch file and keep cmd open
not a bad idea, ill give that a try thank you
11 replies