Winscp.com adding a space at end of file name

Advertisement

molonede
Joined:
Posts:
1
Location:
Cincinnati

Winscp.com adding a space at end of file name

Version 5.14 (build 3020)
I have found that Winscp.com is adding a space at end of file name when I use parameters to pass in the file names.

I don't have problems if I manually enter the file names.

winscp> put LBS-05132013.csv live/LBS-05132013.csv

This works fine, but if I use parameters passed in I get a space at the end of the file name when it is put to the target server.

\\server.com\BORepository\FileStore\FileStore\WinScp\winscp.com /script="\\server.com\BORepository\FileStore\FileStore\WinScp\lbs_72HrRule_ftp.txt" /log="\\server.com\BORepository\FileStore\FileStore\WinScp\lbs_72HrRuleftp1.log" /parameter "\\server.com\BORepository\FileStore\FileStore\WinScp\LBS-05132013.csv" "LBS-05132013.csv""

The log does not show a space at the end when its sent.
> 2013-05-13 07:24:20.740 Script: put \\server.com\BORepository\FileStore\FileStore\WinScp\LBS-05132013.csv live/LBS-05132013.csv"

There ends up being a space at the end of the file name, I confirmed this using winscp.exe.

Any thoughts?

Last edited by molonede on 2013-05-15 12:23; edited 1 time in total

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Winscp.com adding a space at end of file name

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum