Topic "Transfer of ascii data is dropping first line"

Author Message
[View user's profile]

Joined: 2010-03-11
Posts: 1
We are using winSCP 4.2.7 attempting to transfer files for our first time thru SFTP. Whether we issue command prompt or run thru an SSIS execute task it does the transfer beautifully, but it drops the first line. The end user insists that the problem is in our data transfer and we have exhausted what to look for. The user said we needed to be sure it was ascii as it was coming thru as binary, but we added that option and it is still happening. The recipient also indicates there are extraneous characters () being inserted at the beginnig of the first line which cause the transfer to drop that line. Can you help?

Here is the script we are executing

option batch on
option confirm off
option transfer ascii
open s -hostkey="ssh-xxx 0000 xx:00: 00:xx:x0:0x:xx:x0:x0:x0:00:x0:0x:00:x0:0x"
put "\\myfilepath\firstfile.txt" "/HOME/Put/ firstfile.txt"
put "\\ myfilepath \secondfile.txt" "/HOME/Put/ secondfile.txt"

execution command line:
"C:\Program Files\WinSCP\" /script="C:\Program Files\WinSCP\pospay.txt"

SSIS settings that execute the script the Execute Task Argument is the same as the command line.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
Can I have a copy of the file you are transferring?
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License