open ftp://a:email@example.com put "C:\Users\abc\file.name" "/Program Files/path_without_space/*.*" exit
I could run that command manually without any problem. But when I put it all together in the script, it got error:
File or folder '/Program' does not exist.
System Error. Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort