Topic "File sychronization and copy file after transfer"

Author Message
Dablekik

Guest


Hi,

I'm using WinSCP for some little things, and here is my problem.

I use a script to syncrhonize a windows folder with a ftp folder and it works great.

Then, i want to copy the files just transfered to another local directory.

Is that possible?

Here is my code:

Code:
# errors without confirm
option batch on
option confirm off

# connect
open ...

# binary mode transfer
option trasfer binary

synchronize local ...



I open the script with this .bat:

Code:
winscp.com /console /script=winscp_recup.txt



So i need to add some things to copy the new file just synchronized, to another local directory

How can i do?

Thanks a lot
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Why don't you run the synchronization again, against the other directory?

Anyway, see these articles for inspiration:
https://winscp.net/eng/docs/script_local_move_after_successful_upload
https://winscp.net/eng/docs/library_example_delete_after_successful_download
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License