Scheduled download

Advertisement

PaddyCJ
Joined:
Posts:
3
Location:
London

Scheduled download

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Scheduled download

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

Reply with quote

PaddyCJ
Joined:
Posts:
3
Location:
London

Re: Scheduled download

martin 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.

Reply with quote

PaddyCJ
Joined:
Posts:
3
Location:
London

Re: Scheduled download

martin 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 :D

Reply with quote

Advertisement

You can post new topics in this forum