Topic "Set transfer mode and file characteristics"

Author Message
moogeboo

Guest


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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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
amar

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
amar wrote:
Did u finf out answer for this. Even i have the same requirement

Did you try my suggestion above?
_________________
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