cancel
Showing results for 
Search instead for 
Did you mean: 

How to open Windows command prompt from SAP RPA?

former_member651398
Participant
0 Kudos
742

Hi,

I was trying to open a command prompt from SAP RPA using UIAutomation technology.

Even if I am capturing the command prompt, and giving its launch path properly, it is ending up in error.

My captured screen with UIAutomation technology looks like below:

And the workflow is as below:

When executing, I am getting an error in the start page saying no valid path provided:

Can someone please help me out what am I missing, and how can I call the Windows command prompt from SAP RPA?

Thank You.

0 Kudos

Hello subu_84


Even I'm facing the same error , Could you please tell how to rectify the error..

Thanks in advance.
Ramya.T

Accepted Solutions (1)

Accepted Solutions (1)

Jerome
Product and Topic Expert
Product and Topic Expert

Hi,

I would not recommend to capture the command line tool. If you need to execute some command lines, please see below :

var command = 'your command line here';
try {
    ctx.exec(command, 30000, function(res){ // timeout 30 sec
        // do some stuff once you get the response
    });
}catch (ex){
    ctx.log(ex.message, e.logIconType.Error);
} 

Please note this is an asynchronous call so you need to execute the next steps in the callback method

Regards,

J.

rashmi-a
Explorer
0 Kudos

can you help me out here .. I have a same requirement.

sveabecker
Community Advocate
Community Advocate
0 Kudos

Hi Rashmi,

The solution has been already posted and the answer has been accepted. If this solution doesn't help you, I recommend to ask a new question with your specific issue or requirement. Make sure you add all the information needed and think about posting a screenshot, too.

I further recommend to do this tutorial https://developers.sap.com/tutorials/community-qa.html

The more details you provide, the more likely it is that members will be able to assist you.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.

Regards, Svea

SAP Community Global Moderator

Answers (0)