Posted: 2017-04-12 21:16
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:
# errors without confirm
option batch on
option confirm off
# binary mode transfer
option trasfer binary
synchronize local C:\EDF-DTG\HydrasFTP\FTPIsere\Done/ Isere/ST1
synchronize local C:\EDF-DTG\HydrasFTP\FTPIsere\Done/ Isere/ST2
synchronize local C:\EDF-DTG\HydrasFTP\FTPIsere\Done/ Isere/ST3
I open the script with this .bat:
C:\EDF-DTG\HydrasFTP\WinSCP\winscp.com /console /script=C:\EDF-DTG\HydrasFTP\FTPIsere\Ftp\winscp_recup.txt
So i need to add some things to copy the new file just synchronized, to another local directory (C:\EDF-DTG\HydrasFTP\FTPIsere\)
How can i do?
Thanks a lot
Location: Prague, Czechia
Why don't you run the synchronization again, against the other directory?
Anyway, see these articles for inspiration:
You can post new topics in this forum
And it's free!