Topic "Scripting"

Author Message
Guest




Is there a way to specify ftp commands in scripts?
Like how do I send a
Code:
TYPE I
command. If I can specify commands will the client be aware of those commands (better said of their effect)?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You can do:
Code:
call TYPE I

Though WinSCP won't use the setting as it explicitly sets transfer mode before each transfer. Use option transfer to set transfer mode in script.
_________________
Martin Prikryl
Guest




I guess what I was more interested in is this:
- if I start winscp with no /passive switch, but somewhere on the way I issue a
Code:
call PASV
command, will winscp "recognize it" and use passive mode from than on?

Also somewhat related to this... I noticed that whenever Filezilla notices that a
Code:
PORT *,*,*,*,*,*
command results in a 5** response it automatically switches to passive mode. It's kind of logical to do so too. Is there a way to reach to this kind of "result" with WinSCP?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Anonymous wrote:
I guess what I was more interested in is this:
- if I start winscp with no /passive switch, but somewhere on the way I issue a
Code:
call PASV
command, will winscp "recognize it" and use passive mode from than on?

No.

Quote:
Also somewhat related to this... I noticed that whenever Filezilla notices that a
Code:
PORT *,*,*,*,*,*
command results in a 5** response it automatically switches to passive mode. It's kind of logical to do so too. Is there a way to reach to this kind of "result" with WinSCP?

No. Though the next version will suggest you to use passive mode in error message, when the server fails to open active connection.
_________________
Martin Prikryl
Guest




OK. Thanks very much for your kind answers! Very Happy
And thanks for the great program! Wink
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