Anaplan Connect archive error file

Hi,

 

We currently are using a batch file which moves the loaded file to an archive folder when the script is done. The issue we are currently having is that the file is moved even if the process of loading is failed.

To improve transparancy and tracking of the process we would like to change the script so that when the process failed the file is moved to another location (error folder in stead of archive folder).

 

Does any one of you has experience with writing this kind of script in a batch file? You can find a screenshot of the script we are using now below.

 

Thanks in advance for your time,

 

E2PW308.png