Import command syntax to be used in Windows7 Task Scheduler

Advertisement

pband
Joined:
Posts:
2
Location:
USA

Import command syntax to be used in Windows7 Task Scheduler

Is the below the correct command syntax to be used in Windows7 Task Scheduler?

/command "option batch abort" "option confirm off" "open sftp://<user>:<password>@<website>” “get –transfer=test /<folder>/*.txt c:\” “close” “exit”

Reply with quote

Advertisement

pband
Joined:
Posts:
2
Location:
USA

Re: Import command syntax to be used in Windows7 Task Scheduler

Thank you, Martin, for your reply. Will try it, and let you know.

Regards,
pb


the command-line would be like (with WinSCP 5.7.1):

/log="c:\path\winscp.log" /command "open sftp://<user>:<password>@<website.com>" "get ""/Folder 3/*.txt"" ""c:\<local_filename.txt>""" "exit"

Note that I added a /log switch, so that you can inspect the log, if you still have problems.

References:
https://winscp.net/eng/docs/guide_automation
https://winscp.net/eng/docs/guide_schedule
https://winscp.net/eng/docs/scriptcommand_get
https://winscp.net/eng/docs/commandline#logging

Reply with quote

Advertisement

You can post new topics in this forum