I'm looking for a batch script to automate the upload of MULTIPLE files at a time to an external ftps site (ftps://servername.xxxx.com).The files are located in a folder on a Windows Server 2008 system.If possible the batch script also needs to check if the files don't already exist in the remote folder to avoid overwrite. Many thanks.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
WinSCP has a batch/script interface. The synchronize command appears to do what you want. |
|||||||||||
|
|
I would write yourself a small (less than 50 line) Java program using Apache Commmons Net utilities and then start that process in your batch file. This is the way I do it, although I currently do it via HTTPS protocol, FTPS should be doable without too much of a problem. If it helps, and you need a rough example of this KIND of thing, I posted a blog post with my code at: http://djangofan.blogsite.org/wordpress/?p=12 |
|||||||
|