on 2020 Jul 08 6:27 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.