I am running a command from an executable by CMD of the Blue Prism software, I tested it locally and it worked, however I am with a doubt when I go up in production, because the IIS server will have the executable but the client will not have it, there is possibility of running CMD on the server of a client that does not have access to that server.
si.StartInfo.WorkingDirectory = "C:\Program Files\Blue Prism Limited\Blue Prism Automate\";
si.StartInfo.UseShellExecute = false;
si.StartInfo.FileName = "cmd.exe";
si.StartInfo.Arguments = "/c AutomateC.exe /user 123 123 /run Processo_teste
si.StartInfo.CreateNoWindow = true;
si.StartInfo.RedirectStandardInput = true;
si.StartInfo.RedirectStandardOutput = true;
si.StartInfo.RedirectStandardError = true;
si.Start();
string output = si.StandardOutput.ReadToEnd();
si.Close();
In case this code will try to locate the Blue Prism directory and run AutomateC.exe, but in 99% of cases the user will not have this executable, has anyone ever had something like this?