Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

pband

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
pband

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”