Start Process acts different

Sachin_Kharmale

Active Member
Hi @samaritanmachine ,

If you want to Run .bat file from blue prism use bellow code to run bat file.
insert bellow code in Blue Prism Code Stage and provide your bat file path as a input.

C#:
                ProcessStartInfo procStartInfo = new ProcessStartInfo(@"Your BAT File Path as a Input Here");
                procStartInfo.RedirectStandardOutput = true;
                procStartInfo.UseShellExecute = false;
                procStartInfo.CreateNoWindow = true;
                Process process = new Process();
                process.StartInfo = procStartInfo;
                process.Start();

I hope it will help you..!
 

himavantht

New Member
Hi Sachin,

But, how to validate if script run is completed.

for example: my script will take 6-7 mins to execute. But I tried running through blueprism - prompt opens and closes in a second (same when you the code stage in blueprism). It just passes the code stage with in a sec and proceeding to next action, but my script will take at-least 6 mins to run and execute.

Any help on how to make the BP control wait till it executes code stage(trigger script logic)
 
Top