Hi everyone,
I am in a situation where i need to download a relatively large amount of .xml files off a ftp server on a daily basis (up to several hundred).
Every 15 minutes new files get pushed onto the ftp server. I am downloading them once per day.
These .xml files are imported into a software by a custom interface afterwards. Therefore the destination folder gets wiped after each import.
I want to delete the files from the ftp server aswell. But I
need to confirm the succesful download before deleting the files.
As I am not a coding guy, I hardly rely on the provided documentation on this site (which worked very well till now).
My first question is: does get -delete include a verification?
And second: I do struggle using the simple get command with a time constraint, because I can see cases where data gets overlooked by the script (data gets pushed on the ftp while the script is running, assuming that the <1d period starts after the script has been completed). I searched and found this
https://winscp.net/eng/docs/library_example_delete_after_successful_download
But I can't get it to work. I copied it into an editor, put in data like username etc, set executionpolicy on the machine to unrestricted and tried to run the script.
Nothing happens except the cmd/shell window opening and closing. Is there a way to get a log or something?
Thank you very much in advance. I know this thread may look like "here is my situation - do the work for me" but it really is not - I am just not into coding...much. Furthermore - as you may have already recognized - english is not my native language so I hope u can arrange yourselves with my presumably 'germanesque' syntax :D
Best regards,
Daniel
/edited some spelling errors
/edit2: I kinda made a mistake in my thinking. There is no need for any time constraint, if i wipe the server entirely after each download. But the question remains the same. If get -delete does not include a file verfication I am in need of another solution.