Topic "New to scripting. Need help with a fairly simple auto download/upload script"

Author Message


Hello all,

I am a professional sports photographer trying to fully automate the editing of photos during an event. I am using a wireless transmitter on my camera that is capable of transmitting to an ftp server. The idea is this: when I take a good photo, I can a press a button and have that photo transmitted to an ftp server, where a person can then pull and edit that photo. I would like to get rid of that person (not literally, just free them up Laughing ). Here are the steps I'm looking to complete:

    * Camera transmits image via wireless network to FTP server's main directory
    * WinSCP waits until image is fully transmitted (something like 5 seconds after last modified date hasn't changed, if possible).
    This is to avoid partial images (with areas of grey/black) from being transmitted
    * WinSCP transmits image to folder called "Import" on workstation
    * Application (Adobe Lightroom) processes and automatically exports image to "Export" folder on workstation
    * WinSCP waits until image is fully exported (again, by watching the last modified date)
    * WinSCP transmits edited image back to FTP server in a folder on main directory called "Edited"
    * Repeat

Where do I begin with this? I've read a lot of the documentation on scripting, but it's still clear as mud. I guess the most difficult part is ensuring no partial image files are transmitted.

Any help would be greatly appreciated.


Is synchronization with a file mask my best bet? Something like this maybe...

synchronize local -criteria=size -filemask=*>5s C:\Users\*****\Desktop\Test\Import /Originals/
synchronize remote -criteria=size -filemask=*>5s C:\Users\*****\Desktop\Test\Export /Edited/

If that looks fine, what do a write before and after? How do I repeat this? Do I use a .bat to do that?


figured out how to repeat using a batch file using "goto". Currently have the sync commands working fine, so this topic can be closed, unless someone has a better solution.


You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License