To automate tasks using WinSCP with BATCH file.

Advertisement

TITI31
Joined:
Posts:
2

To automate tasks using WinSCP with BATCH file.

Hi everyone,

I am a new user on WinSCP. I don't know how automate WinSCP tasks in order to retrieve a file in FTP. It seems there are three steps:
  1. To log in;
  2. To retrieve a file in FTP.
  3. To log out.
Of course, there are several pages where it explains different WinSCP commands. I built different scripts, it doesn't work.
https://winscp.net/eng/docs/scripting#commands
https://winscp.net/eng/docs/scriptcommand_get#examples
Batch files often tell me get command or another doesn't exist.

For information, I am under Windows11.

Thank you for your help.

Reply with quote

Advertisement

TITI31
Joined:
Posts:
2

To automate tasks using WinSCP with BATCH file.

Hi,

For example, here is a command to open a session:
open ftp://fiveref:XXXYYYYZZZZ@ftp3.culturevelo.com/ -hostkey="ftp3.culturevelo.com"
First error:
"open" n'est pas reconnu en tant commande interne ou externe.
I think that is not a geed declaration.

Reply with quote

Advertisement

You can post new topics in this forum