Scheduled download

Advertisement

PaddyCJ
Joined:
Posts:
3
Location:
London

Scheduled download

Hi All,

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

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

Here's the command that I'm using;
winscp.com /command "open ""P-CARDS""" "GET ""P:\TestP-CardsIn""" /log="P:\TestP-CardsLog\WinSCPLogs\winscp.log" "exit"
I'm hoping to later on setup this up as a scheduled task as it will need to download a new file daily.

Any help would be appreciated.

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
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\"

Reply with quote

Advertisement

You can post new topics in this forum