Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

cacro

Solved !

I solved my problem by adding "" and removing the variables :-)
cacro

Problem with space in local patl

Good morning,
Could you help me please about a script to simply copy files from local folder to remote folder. My script is the following :
set localpath = D:\test test\test\*.*

set remotepath = C\remotetest remote test\test
winscp.com /command "open ftps://userlogin:password@remoteftp/"
"put %localpath% %remotepath%"
"exit"

The connection is working fine but the command put doesn't work :-(
I have this issue : '"put "' is not recognized as an internal or external command,
operable program or batch file.

Could you help me please ?
I read this page https://winscp.net/eng/docs/scripting#quotes but I don't understand where is the error.
Thanks a lot !