Transfer from local drive to WinSCP not working

Advertisement

PowerAgent
Guest

Transfer from local drive to WinSCP not working

I am planning to transfer all the csv files inside my local folder.

Source folder is
D:\DO NOT DELETE_Robobai Automation

and the destination is
/writable

This is the code I already created.
@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="D:\DO NOT DELETE_Robobai Automation\WinSCP log\WinSCP.log" /ini=nul ^
  /command ^
    "open sftp://monadel:Kr3MHr*HfGqcNNKr@monadelsftp.robobai-analytics.com/ -hostkey=""ssh-ed25519 255 KoFwxuiDMwrr3XvNWVMGfWfDYrNkY4iYxAqoyFkmpAo""" ^
  "synchronize local D:\DO NOT DELETE_Robobai Automation\Files /writable/" ^
  "exit"
When I run it, it opens a CMD window and then that window closes after couple of seconds.
I assume it ran successfully but when I check the destination directory, the files are not there.

I am attaching here the WinSCP log as well.

I hope someone can help me from my problem as I am dealing and debugging this for weeks now but still no luck.

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Transfer from local drive to WinSCP not working

> 2024-05-27 12:00:55.289 Script: synchronize local D:\DO NOT DELETE_Robobai Automation\Files /writable/
< 2024-05-27 12:00:55.289 Script: Too many parameters for command 'synchronize'.
It should be:
  "synchronize local ""D:\DO NOT DELETE_Robobai Automation\Files"" /writable/" ^
See
https://winscp.net/eng/docs/scripting#quotes
https://winscp.net/eng/docs/commandline#syntax

Reply with quote

Advertisement

You can post new topics in this forum