Automating SFTP file upload

This document is intended to complement the information found in eCat FTP site

For Windows, we suggest using Putty's "psftp.exe" command, since Filezilla isn't really scriptable. You can download it here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html (64-bit version direct link: https://the.earth.li/~sgtatham/putty/latest/w64/psftp.exe) For scripting, I would follow the suggestion found here: https://stackoverflow.com/questions/694203/controlling-psftp-in-a-windows-batch-file#873434 In our case, if you're uploading images, I would do a BAT file something like:

cd images
mput *.jpg
quit

Then call psftp using something like:

cd <your images directory>
psftp st@sftp.supercatsolutions.com -pw <your password> -b <your bat file>.bat