cancel
Showing results for 
Search instead for 
Did you mean: 

HCI DS: Move successfuly processsed file to different directory

Former Member
0 Kudos

Hello,

Is there a possibility to move the successfully processed source file from one directory to a different directory in HCI DS? If yes, how?

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Alecsandra
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kiran,

Yes, that`s possible.

Please see below:

First of all you would need a batch file that contains a move command.

This MoveFile.bat is being called from HCI via the exec() function which sends a command to the operating system.

You can pass parameters to the bat file, like in the example one parameter with the file name to be moved to the Archive folder.




In the example there is also a print() function which will help for troubleshooting, because will print the result (or error) from the .bat command into the trace log.One challenge could be with the file names is that “\” is a character with a special meaning in the HCI script language. So for the \ in the file paths, you need to escape it and use ‘\\’

As a tip: use several print statements if you want to understand what’s happening to print out any variables etc you are using.


Regards

Alecsandra

Answers (0)