Contents » Troubleshooting » FAQ (Frequently Asked Questions) »

I need to upload files to my server automatically at specified time. Can this be done using WinSCP?

Combine scripting/automation feature with Windows scheduling capability.

Read F.A.Q. on scheduler to prevent common mistakes.

To add new scheduled task:

  • Go to Windows Start Menu > Settings > Control Panel > Scheduled Tasks > Add Scheduled Task.
  • Browse for WinSCP.exe executable, and setup other task properties (like period of execution).
  • In advanced properties add appropriate WinSCP command-line parameters to execute the scripting commands you need (typically you will use /script or /command parameters).
    The resulting command may look like:
    “C:\Program Files\WinSCP\WinSCP.exe” /command “open user:password@example.com” “put d:\examplefile.txt /home/user/” “exit”
    Note that the command-line parameter /console was not specified, what makes WinSCP.exe not show the console window, not to disturb you while you are using your workstation.
  • You may want to use /log parameter to turn on logging to file.
 
  faq_schedule.txt · Last modified: 14 Feb 2008 11:16 by 193.179.225.19 (prikryl)
 

Site Search

This page

Donate

Donate via PayPal

Associations

Webhosting phpBB
Hosted by SourceForge Bookmark Manager
Driven by DokuWiki

Site design by Black Gate

Promotion consulting by TechWeb Media