Schedule file transfers (or synchronization) to FTP/SFTP server using WinSCP


  1. install WinSCP on windows machine.
  2. create a batch file using below commands
  3. “C:\Program Files\WinSCP\WinSCP.com” /log=C:\automation_test\log.txt /command “option batch abort” “option confirm off” “open sftp://username:password@epillars.net/” “put C:\automation_test\Sample_ePillars.xlsx  /home/epillpyq/public_html/automation_test/” “exit”
  4. run the batch file using cmd or you can use task scheduler

bat1

bat2

bat3

press entre

bat4

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s