Topic "Command line options of GET"

Author Message
Mr Juergen Bergmaier

Guest


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

so far its 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 fr alle, Ja fr (a)
lle:
------------------------------------------------------

So my question: Is ist posible 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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
_________________
Martin Prikryl
ddata

Guest


prikryl wrote:
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.


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

Thanks a lot!

Thomas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
_________________
Martin Prikryl
tpp

Guest


prikryl wrote:
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.


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.

Quote:
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 Smile
_________________
Martin Prikryl
TroyP

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
TroyP wrote:
I also can not find this setting in the GUI.

Please see documentation.

Quote:
Is the feature available when scripting?

No. You can use synchronize command though.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License