cancel
Showing results for 
Search instead for 
Did you mean: 

How to automate mscommand prompt through blueprism

malligac
Level 3
How to automate MScommand prompt (cmd.exe)
6 REPLIES 6

TomBlackburn1
Level 7
I've not automated command prompt through Blue Prism, but have developed some objects to automate the WinSCP command prompt and PuTTY. However, I have found that for the purposes required - I have been able to pre-code batch scripts of powershell scripts and use the Start Process action. Perhaps this could be something you could look into, rather than interfacing with the command prompt.

Anonymous
Not applicable
We can automate command prompt using BP. Please use the below steps 1) Using utility environment object, select start process action & pass the application value as ""C:\Windows\System32\cmd.exe"" 2) Using navigate stage attach the cmd application with input windows title as ""C:\Windows\System32\cmd.exe"" 3) Enter the any command using global send keys event to cmd application like ""dir {RETURN}

TomBlackburn1
Level 7
Sudarshant - Out of curiosity, can you read from contents of the command prompt? E.g. wait for an action to complete? I haven't tested, but I imagine you can't. I had some issues with PuTTY like that so had to use other work arounds.

TomBlackburn1
Level 7
OCR should be a last resort. I was looking for a direct API read using Win32/AA. However I now use write out the result to a .txt file, then download that into Blue Prism to query the output result.

TetsujiJunicho
Level 9
For Read, Send Key ALT+SPACE, E, S, Enter. Then Read From Clipboard by using Utiltity Environment#Get Clipboard.

Could you please share the object if possible.

------------------------------
SANJIB SINHA
Software Senior Engineer
TELSTRA
Asia/Kolkata
------------------------------