Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

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

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