Topic "Script to GET files without replace"

Author Message
Floribar
[View user's profile]

Joined: 2010-04-26
Posts: 4
Location: Barcelona
Hi everybody,

I have a FTP server where lots of diferents files are stored and most of them not mine.
(I cannot use the command "synchronise"...)

Using an SSIS PAckage, i get the proper files using a mask with the
"get" command.

It works fine, except that I am getting lots of file now, and I wish not to get the ones I already have.
I mean to use the "get" command in a batch, but where the option "confirm replace" would be "NO".

How can I do that?.

I have been trying the diferent options "Batch", "confirm" and I am still downloading the one I have got.

Thanks for your help.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
What is the reason you cannot use synchronize?
_________________
Martin Prikryl
Floribar
[View user's profile]

Joined: 2010-04-26
Posts: 4
Location: Barcelona
in the ftp folder, theres are lots of file which have nothing to do with my project and that I shouldn't copy in my destination folder.

I only want some with have a certain format name ( e.i: BE100302_20100420_ATCR7888.030.2009041.csv).
In this folder FTP, there are word document, zip,... I don't want all these files sinchronised.

Is it posible to sinchronise only the files type I need with a mask?

o is it posible to get with batch without the Replace option?

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Floribar wrote:
Is it posible to sinchronise only the files type I need with a mask?

Yes.
option include <mask>
_________________
Martin Prikryl
Floribar
[View user's profile]

Joined: 2010-04-26
Posts: 4
Location: Barcelona
Perfect!

Will try it right now!
Floribar
[View user's profile]

Joined: 2010-04-26
Posts: 4
Location: Barcelona
Thanks a lot!
It works perfectly!
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