Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Does your source file have CR/LF line endings?
azmp1

Thanks, but is still have a problem. After reading the FAQ i thought i was set, i've created a saved profile, in the profile i've set the environemt to CR/LF and had the saved session called before calling the script file, but nothing has changed, the file is still comming through in the "Unix" mode...
I've actually ran the entire proccess manually via WinSCP GUI and still can't have the file come through converted with Windows eol characters...

Please help....

Thanks
martin

Re: change environment command in script file.

Please read FAQ. If that does not help, come back.
azmp1

change environment command in script file.

Hi folks, i need some help please.
I'm runinng an SFTP transfer with a script answer file.
winscp /script=adp_get_files.txt

Here's the script file:
option batch on
option confirm off
open xxxxxxxxxxxxxxxxxxxxxxxx
option transfer binary
get readi.txt
get rcohypjd.csv
get data.job
close
exit


The problem is looks like that the environment is set to LF and i need it to be in CR/LF otherwise its screwing up my end of line characters... Is there a command i can uppend to my script file to set the environment for CR/LF? Can't find it in documentation....
Thanks in advance.