I want to make a batch script able to listen to my ftp server and download files to my computer every time a new file is uploaded on the ftp server.
Any ideas? I use WinSCP.
I want to make a batch script able to listen to my ftp server and download files to my computer every time a new file is uploaded on the ftp server.
Any ideas? I use WinSCP.
You can use WinSCP scripting with its
synchronize
command:On Windows XP and older, use
ping -n 10 127.0.0.1
instead oftimeout 10
.Use the /synchronize local switch of WinSCP. It will check the remote server and download any files that don't match a local directory.
Then you can use task manager to run it on a schedule or use it in a batch file in a loop
ex:
will run it every 10 seconds.
Read the Command line options for WinSCP for more.