Topic "Import command syntax to be used in Windows7 Task Scheduler"

Author Message
pband
[View user's profile]

Joined: 2015-03-31
Posts: 2
Location: USA
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”
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
I suppose that this is your post:
https://winscp.net/forum/viewtopic.php?t=15160
_________________
Martin Prikryl
pband
[View user's profile]

Joined: 2015-03-31
Posts: 2
Location: USA
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License