Topic "change environment command in script file."

Author Message
azmp1

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
_________________
Martin Prikryl
azmp1

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Does your source file have CR/LF line endings?
_________________
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