Topic "Winscp.com adding a space at end of file name"

Author Message
molonede
[View user's profile]

Joined: 2013-05-13
Posts: 1
Location: Cincinnati
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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
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