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

I'm not sure what switches you refer to. There are many groups of unrelated switches with wide range of uses.

As I wrote above, I believe no switches functionally similar to the /synchronize reuse an existing session. I mean those covered in the "Operations" section.
https://winscp.net/eng/docs/commandline#operations

The only exception is the /refresh, whose only purpose is to work with the existing sessions (and it is the only operation switch, which is documented to work like that). And it is actually quite different to the others.
Guest

Hi Martin, thanks for the feedback.
The /synchronize switch has the [mysession] parameter just like the other switches.
https://winscp.net/eng/docs/commandline
How come it does not behave like the others ?

I do not think the documentation claims it does.

The docs don't state this explicitly for any switch so I presumed all switches using the [mysession] parameter behave the same...
martin

Re: "/synchronize" parameter does not seem to reuse existing session in GUI

Indeed the /synchronize (nor any other similar switch) does not reuse an existing session. I do not think the documentation claims it does.
Guest

"/synchronize" parameter does not seem to reuse existing session in GUI

Hi all,
Isn't this invocation syntax supposed to reuse an existing idle session from the GUI ?
winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]]

I've opened a session in the GUI manually, renamed the session to "linux", selected some files in the local pane, hit Synchronize with Both + Selected files only + Use same options next time and all went well.
I then tried to run winscp.exe linux /synchronize /defaults from the command line but the command tries to open a new session to host "linux" instead of reusing the existing session with this name which is active and idle.
The refresh invocation seems to work just fine
winscp.exe [mysession] /refresh [path]

Am I not reading the docs right ?
Thanks !