on 12-18-2015 12:16 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.