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

martin

Re: Set transfer mode and file characteristics

amar wrote:

Did u finf out answer for this. Even i have the same requirement

Did you try my suggestion above?
amar

Re: Set transfer mode and file characteristics

moogeboo wrote:

Hi,

I'm trying to connect via SFTP to a site that requires me to set the transfer mode and file characteristics before I upload my file. Basically, i need to issue the following command: ls /+recfm=vb,mode=text,lrecl=27000 before I issue my put command. Is this even possible to do within Winscp scripting?

Thanks,
Mooge


Did u finf out answer for this. Even i have the same requirement
martin

Re: Set transfer mode and file characteristics

So does that mean the server abuses the SSH_FXP_READDIR to set some transfer parameters, when the "directory path" uses some special path syntax?

In that case, just use the "ls" command, exactly as in your post.

https://winscp.net/eng/docs/scriptcommand_ls
moogeboo

Set transfer mode and file characteristics

Hi,

I'm trying to connect via SFTP to a site that requires me to set the transfer mode and file characteristics before I upload my file. Basically, i need to issue the following command: ls /+recfm=vb,mode=text,lrecl=27000 before I issue my put command. Is this even possible to do within Winscp scripting?

Thanks,
Mooge