Auto Sync FTP

Advertisement

Becares
Joined:
Posts:
2
Location:
Madrid

Auto Sync FTP

Hi guys,

I´m trying to synchronize automatically a remote directory in the FTP with files downloaded to my local directory. But it does not work.

This is the script that I have created:
# Connect to FTP server using a password
open ftp://device_aceptance:password@ftp.com/ -hostkey="ssh-dss 1024 78:64:1a:5c:27:7a:5e:46:1f:c7:c2:37:48:b8:df:3f:f9:8f:a3:ca"
# Upload file
keepuptodate C:\Users\cmb\Downloads\SW DL /SW Homologaciones
# Exit WinSCP
exit
Then I go to the task scheduler:
1. I created a new task
2. Put "C:\Program Files (x86)\WinSCP\WinSCP.exe" in action field
3. Put /script="C:\Program Files (x86)\WinSCP\SCript_auto_FTP.txt" in Add arguments

But is does not work
Any idea about that?

Thanks in advance
regards

carlos.

Reply with quote

Advertisement

Becares
Joined:
Posts:
2
Location:
Madrid

Re: Auto Sync FTP

Thank you for your reply.
I have tried that, but it still not working, even log events are not shown.

My script is located in C:\Program Files (x86)\WinSCP with name SCript_auto_FTP.txt. I have checked that the same route is put on the task scheduler.
When I launch manually in cmd line:
C:\Program Files (x86)\WinSCP>WinSCP.exe /script="c:\Program Files (x86)\WinSCP\SCript_auto_FTP.txt" /log="c:\Program Files (x86)\WinSCP\Script_auto_FTP.log"
I have not response:
C:\Program Files (x86)\WinSCP>

Reply with quote

Advertisement

You can post new topics in this forum