Topic "Scheduled download"

Author Message
PaddyCJ
[View user's profile]

Joined: 2012-02-16
Posts: 3
Location: London
Hi All,

I'm quite new to this so please bear with me.

Ive hashed together a script that script that is meant to connect to a secure FTP site, Ive created a session and used that to open the connection via WINSCP.COM but the files do not download to the desired location.

Heres the command that Im using;

winscp.com /command "open ""P-CARDS""" "GET ""P:\TestP-CardsIn""" /log="P:\TestP-CardsLog\WinSCPLogs\winscp.log" "exit"

Im hoping to later on setup this up as a scheduled task as it will need to down load a new file daily.

Any help would be appreciated.

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The first argument to get is remote path to download files from. Also if TestP-CardsIn is local folder, you need to terminate the path with backslash:
"GET /remote/folder/to/download/files/from/* P:\TestP-CardsIn\"
_________________
Martin Prikryl
PaddyCJ
[View user's profile]

Joined: 2012-02-16
Posts: 3
Location: London
prikryl wrote:
The first argument to get is remote path to download files from. Also if TestP-CardsIn is local folder, you need to terminate the path with backslash:
"GET /remote/folder/to/download/files/from/* P:\TestP-CardsIn\"


Thanks I'll give it a go.
PaddyCJ
[View user's profile]

Joined: 2012-02-16
Posts: 3
Location: London
prikryl wrote:
The first argument to get is remote path to download files from. Also if TestP-CardsIn is local folder, you need to terminate the path with backslash:
"GET /remote/folder/to/download/files/from/* P:\TestP-CardsIn\"


Thanks a lot Prikryl that worked like a charm Very Happy
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