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