change environment command in script file.

Advertisement

azmp1
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,661
Location:
Prague, Czechia

Re: change environment command in script file.

Please read FAQ. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,661
Location:
Prague, Czechia

Does your source file have CR/LF line endings?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum