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!