Using the Application: Open program/file command
I fill in the
Location of the program/file
for a batch file.
The batch file then calls a powershell file.
I need to modify the powershell file to return an error code.
Then I need the returned error code from the powershell to be passed to the batch file.
Then in the bot, add an IF command to see if the error code exists.
Is this something that can be done in Automation Anywhere?
If so can someone please let me know how it can be done?
- Task bot calls batch file.
- Batch file calls powershell file.
- Powershell file returns exit code to batch file.
- Task bot uses exit code from batch file to make decisions.
I currently have the batch file and the powershell file working but the powershell isn't returning an exit code.
There doesn't seem to be a way for the batch file to accept a return code.
I'm pretty sure I can figure out how to write the return code in the powershell but am not sure if it can be handled in the batch file and the taskbot.