How to get the error code & error message return from Vbscript to Automise?

Hi,
 
I am using Automise for one of my project that move the files and organize that files in the related folder.
In this project, I am using Move Files & Run Script actions.
 
Once the files move to the folder, I am executing a vbscript that exists in that folder from Run Script Action to organize that files
 
My question is how can I get the error code and the error message return to the automise if the vbscript fail? 
 
 
Thanks,
Jeegs
 

Hi,

I have attached a simple example of how to use some simple error handling within your VBScript code to catch the error details. I have also used a Try/Catch block to capture the error details and save these details into Automise variables.

Please let me know if this solves your problem.

Regards,

Steve

HandleErrors.atz3 (2.191 KB)