Topic "Passing multiple (!) command to remote comp on cmdline?"

Author Message
[View user's profile]

Joined: 2006-10-18
Posts: 22
I started a cmdline Winscp session and passed a command with e.g.

... /console /command "get *.log D:\data"

However after successfully performing this download command the shell remains open.
I need to close it with an "exit" command.
How can I pass a second command within the SAME session ?

Appending a second /command ... does not work:

... /console /command "get *.log D:\data" /command "exit"

How can I otherwise chain multiple commands ?

This should not only be a solution for the "exit" command but for some more other commands as well like downloading other files.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
... /console /command "get *.log D:\data" "exit"
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License