Automate Command Prompt using blue prism

0 votes

I am try to create a BOT in RPA that will read excel files and then try to execute some standard commands from command prompt using the data in excel files. I am using Blue Prism for this purpose. While I am able to read excel files and store the data in collection, I am not able to automate command prompt in Blue Prism. I tried to use a code stage in c# to create a cmd process ( code is given below), but it does not recognize the 'Process' class.

System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new         
System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "<command script>";
process.StartInfo = startInfo;
process.Start();

Any help or guidance in the right direction will be appreciated

Oct 5, 2018 in RPA by eatcodesleeprepeat
• 4,670 points
1,072 views

1 answer to this question.

0 votes

A more 'Blue Prism-ish' solution would be to launch 'C:\Windows\System32\cmd.exe'' with your needed commandline. But your solution is technically better I believe.

answered Oct 5, 2018 by Priyaj
• 56,520 points

Related Questions In RPA

0 votes
1 answer

Pull a section of text from a word document using Blue Prism

You can highlight the text in your ...READ MORE

answered Nov 13, 2018 in RPA by Priyaj
• 56,520 points
1,133 views
0 votes
1 answer

How to view PATH for all System Variables using command prompt?

Hi Misha, so if you want to ...READ MORE

answered Mar 8 in RPA by Abha
• 19,560 points
37 views
0 votes
1 answer

How to automate Citrix based applications in Blue Prism?

Hi Bilal, Surface Automation techniques with Region ...READ MORE

answered Mar 18 in RPA by Anvi
• 11,730 points
460 views
+2 votes
1 answer

How to extract data from website and save it to excel using Blue Prism?

Hey, you can use following steps to ...READ MORE

answered 2 days ago in RPA by Abha
• 19,560 points
74 views
0 votes
1 answer

What is code segment in Blueprism and how to implement it?

Blue Prism - Code Stage The code stage ...READ MORE

answered Sep 28, 2018 in RPA by Priyaj
• 56,520 points
1,211 views
0 votes
1 answer

Error : Failed to perform step 1 in Navigate Stage '-----' on page '----' - Not Connected

Do you have Attach bookmark created? When ...READ MORE

answered Sep 28, 2018 in RPA by Priyaj
• 56,520 points
3,622 views
0 votes
1 answer

Spy an active accessibility combobox in blue prism?

My ComboBox is standard HTML Combo Box(Element ...READ MORE

answered Oct 1, 2018 in RPA by Priyaj
• 56,520 points
787 views
0 votes
2 answers

RPA tool for C# Developer beginer

Hi! You can try Rpa Suite for Visual ...READ MORE

answered May 10 in RPA by AndrewNJ
635 views
0 votes
1 answer

Using GLobal Send Keys how to send PrtScr in Blue Prism?

Navigate stage with Global Sendkey and text ...READ MORE

answered Oct 24, 2018 in RPA by Priyaj
• 56,520 points
1,705 views
0 votes
1 answer

Create a email login object using basic blue prism

Reset the password by going ahead with the ...READ MORE

answered Nov 2, 2018 in RPA by Priyaj
• 56,520 points
236 views