Topic "MGET functionality??"

Author Message
cnhodge
[View user's profile]

Joined: 2005-01-05
Posts: 1
Newbie here...

I am trying to use WinSCP in an ActiveX script inside a SQL 2000 DTS package. I currently have the automation and scripting running successfully as a DTS job. The problem is that I do not see any functionality for an "mget" command. I need to grab all the files in a dir on a SFTP server every night for processing. These files will have names that are date/time stamped by the other party, so I will not always know the specific filenames.

I have read the FAQ and searched, but can't seem to find the answer. The FAQ shows the allowed commands but doesn't include "mget". I am wondering if I am just missing it somewhere.

If it isn't available now, will it be available in the future?

Thanks,

Nathan
Advertisements
Klaus_1250

Guest


If you really need ALL the files, you could use "synchronize local" instead of mget. (had the same problem, now using "synchronize local").
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
  1. Klaus is right
  2. You can also download whole directory, if it helps in your case. I.e. instead of "get /tmp/aaa/* c:\aaa" do "get /tmp/aaa c:\"
  3. I'll add wildcards to get command eventually.

_________________
Martin Prikryl
Guest




Many thanks! I will give that a try!

Nathan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Also see guide to using WinSCP from SSIS.
Macpattos

Guest


Hi, I have the same problem and I solve it doing a sinchorize and a mask including the wildcards i need.
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