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

bakker_be

Hi Martin,
I open the file with Notepad++ or Programmer's Notepad, both display additional lines which weren't visible in the original file. I'll look into text-transfer.
martin

Re: Scripted upload adds empty lines to csv-file

How do you display the file to see that the blank line was added?
I would assume the CSV file has Windows line endings. Viewer expects Unix line endings and interprets the Windows line ending as an additional new line.
Try to use text transfer mode.
https://winscp.net/eng/docs/transfer_mode
bakker_be

Scripted upload adds empty lines to csv-file

Hi there, I'm trying to automate the upload of a csv file through FTP, but for some strange reason this command
c:\program files\winscp\winscp.com "/script=C:\Data\PLANNING\PLANNING_20141228.txt"
adds a blank line after each line in my csv.
Content of the script file:
open ftp://user:pwd@ftp

cd /data
put C:\Data\PLANNING\PLANNING_20141228.csv
close
exit