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: NewerOnly

TroyP wrote:

I also can not find this setting in the GUI.

Please see documentation.

Is the feature available when scripting?

No. You can use synchronize command though.
TroyP

NewerOnly

I see a NewerOnly=0 steeing in my INI file but I do not see what the setting has to be to get only newer files. I have tried 1 (since the default is zero). I also can not find this setting in the GUI. Is the feature available when scripting?
martin

Re: Command line options of GET

tpp wrote:

Please, setup what you need in GUI and see what is set in the INI file yourself.

Unfortunatelly, this option is not persistent, so it is not configurable via INI. I have noticed it only now, I'll fix it with the next release.

It would be nice to have a feature in the GUI to export an ini file for 1 machine. I have over 20 servers that I connect to regularly -- all with different settings. I would like to quickly generate 20 different ini files for automation.

That's quite specific request :-)
tpp

Re: Command line options of GET

I have set up my downloads in a GUI. I do not see any variables in my ini file that would indicate "copy only newer" files. What names should I be looking for?

It would be nice to have a feature in the GUI to export an ini file for 1 machine. I have over 20 servers that I connect to regularly -- all with different settings. I would like to quickly generate 20 different ini files for automation.
martin

Re: Command line options of GET

ddata wrote:

Sound great, could you explain what should be added to the .ini file.

Please, setup what you need in GUI and see what is set in the INI file yourself.
ddata

Re: Command line options of GET

Sound great, could you explain what should be added to the .ini file.

Thanks a lot!

Thomas
martin

Re: Command line options of GET

You can do that only by setting the option as default in configuration. You can do that by providing custom INI file to the WinSCP process that runs your script.
Mr Juergen Bergmaier

Command line options of GET

I'm trying to download some files, using
winscp-Scripting command get
For eg:
get *.tar p:\target-dir\

so far it's working ...
Initialisiere...

Suche entfernten Rechner...
Verbinde mit entferntem Rechner...
Melde an...
Using username "root".
Angemeldet.
Starte die Sitzung...
Lese entferntes Verzeichnis...
Sitzung wurde gestartet.
Aktive Sitzung: [1] esx01_sicherung_vmdk
prog_vmware_vmx.tar       |          0 kB |    0,0 kB/s | binary |   0%
Die lokale Datei 'prog_vmware_vmx.tar' existiert bereits. Überschreiben?
Neu:            266240 bytes, 16.02.2006 12:04:45
Vorhanden:      266240 bytes, 16.02.2006 12:04:45
(J)a, (N)ein, A(b)brechen, An(h)ängen, Nur n(e)uere, Ne(i)n für alle, Ja für (a)lle:

So my question: Is ist possible to add a option to the
get command for downloading only newer files to
to the target-Dir ? Or what would be a useful way to
do this in a batch-file?

Thanks for soon response!
Juergen