Set transfer mode and file characteristics

Advertisement

moogeboo
Guest

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

Reply with quote

Advertisement

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

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
_________________
Martin Prikryl

Reply with quote

amar
Guest

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

Reply with quote

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

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?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum