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

Advertisement

pstein
Joined:
Posts:
22

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

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.

Peter

Reply with quote

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

Re: Passing multiple (!) command to remote comp on cmdline?

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

Reply with quote

Advertisement

You can post new topics in this forum