Command line Upload file only if no file is available
Hello
unfortunately I am forced to upload the same file to an FTP server again and again. However, this file can only be uploaded if the file does not exist on the server.
Scenario A) WinSCP uploads the file -> programme B has retrieved and deleted the file -> WinSCP uploads the same file again.
All this via task scheduling.
Scenario B) WinSCP uploads the file -> Programme B has NOT yet retrieved the file. WinSCP therefore does not upload the file -> It is then tried again 5 minutes later using task scheduling. Until scenario A comes into effect.
How can I implement this?
Translated with DeepL.com (free version)
unfortunately I am forced to upload the same file to an FTP server again and again. However, this file can only be uploaded if the file does not exist on the server.
Scenario A) WinSCP uploads the file -> programme B has retrieved and deleted the file -> WinSCP uploads the same file again.
All this via task scheduling.
Scenario B) WinSCP uploads the file -> Programme B has NOT yet retrieved the file. WinSCP therefore does not upload the file -> It is then tried again 5 minutes later using task scheduling. Until scenario A comes into effect.
How can I implement this?
Translated with DeepL.com (free version)