So, as part of my daily jobs, I have to transfer a one file from our customers server to our internal server and any responses back. Each customer effectively has one file up and one file down each day.
I have an SFTP server here that I can use and is already used manually for a few sites. I'm looking to automate as many sites as possible using batch files on a scheduled task.
Initially, I'm looking at automating the internal side of the process.
We simple have a requests folder that needs to import from the SFTP (then delete the original on the SFTP) and a response folder which needs to copy to a 'sent' folder and then export to the SFTP (also, deleteing the original)
On the SFTP server I have a "to site" and "from site" folder. Each file is site specific followed by a variable. So SiteNameImport.<variable>
and SiteNameExport.<variable>
EDIT: I'm asking this as I'm a novice at scripting and basically have no idea what to do. I've tried reading the automation guide on WinSCP website but a lot of it means nothing to me.