Topic "Script error with space in the remote path"

Author Message
davidnguyen

Guest


I do have very simple script that upload file to server:

Code:

open ftp://a:b@x.y.z
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:

Code:
winscp.com /script=test.script


Quote:
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


Thanks
davidnguyen

Guest


It's my fault that edited the wrong script file.

I worked as a charm Smile
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License