Schedule remote to remote job

Advertisement

Uterus
Joined:
Posts:
1
Location:
Sweden

Schedule remote to remote job

Hey
I want to schedule a transfer via Task Scheduler from one remote server to remote FTP

So far I've created a task that opens "C:\Program Files (x86)\WinSCP\WinSCP.com" with added argument: in a single line.
"/log=D:\Logfilepath\log.txt /command "open ftp://username:password@FTPURL:port" "put ""\\source\folder\subfolder\sub folder\subbfolder\subfolder\*"" TargetURL/ "exit"
But as soon as I add multiple put-commands nothing works.
Ideally I want to have all my arguments on file, not inputed directly to task scheduler.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,041
Location:
Prague, Czechia

Re: Schedule remote to remote job

Even your single-put commandline is wrong, so it probably does not work correctly either. It misses one quote. It should be:
"put ""\\source\folder\subfolder\sub folder\subbfolder\subfolder\*"" TargetURL/" "exit"
https://winscp.net/eng/docs/commandline#syntax

If by your last sentence you mean that you want to have the commands in a file, then use /script parameter:
https://winscp.net/eng/docs/commandline#scripting

Reply with quote

Advertisement

You can post new topics in this forum