I'm trying to use the following command to copy a folder from a Windows machine to Linux:
source: d:\my test
> winscp.com myuser:email@example.com /command "put d:\my test /root/Desktop/"
(It is important to say that the same command works with a simple source folder name, such as d:\test)
it fails, of course, and reports that the folder "d:\my" doesn't exist.
I've tried some variations, such as
> winscp.com myuser:firstname.lastname@example.org /command "put \"d:\my test\" /root/Desktop/"
but none of them works. How can I quote the source folder name inside a put command, in order for it to be understood correctly?