Topic "Download to UNC path"

Author Message
dfoard
[View user's profile]

Joined: 2010-09-13
Posts: 2
I am using a script within SSIS to automate the download. I am trying to use a UNC path with the get command:
GET myfilename.zip \\nasgw\myfolder\

However, when testing this in SSIS I get the error too many parameters for command. The documentation states that UNC paths are supported, but what is the exact syntax to use when scripting?

Here is the sample script:
open sftp://username:password@sitename.com
open transfer binary
get myfilename.zip \\nasgw\myfolder\
close()
exit

Dave
dfoard
[View user's profile]

Joined: 2010-09-13
Posts: 2
NVM - it actually is working using the UNC path name, though not sure why I am getting the too many parameters message.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Maybe because of "open transfer binary". You probably wanted to do "option transfer binary.
_________________
Martin Prikryl
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