0 votes
1 view
in RPA by (5.3k points)
recategorized by

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();

1 Answer

0 votes
by (9.5k points)

Try to launch 'C:\Windows\System32\cmd.exe'' with your needed command line

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...