Topic "Automate prompt"

Author Message
sjerome
[View user's profile]

Joined: 2010-04-27
Posts: 3
Location: UK
Hello All,
I am new to WinSCP and new to scripting so please bear with me!!

Below is the script that I have created:

option confirm on
option include "*.spf; ?_VOL-b???.md5; *-cd.spi; *-cd.md5;"
open ftp://sr01:sr01@192.168.100.132
put \\192.168.100.140\serverrescue\*.* / -resume

This will prompt to to Overwrite any files which are already there. How do I automate this to say N(o) to All?

Thanks for your help,

Simon
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You should use synchronize instead of put.
_________________
Martin Prikryl
sjerome
[View user's profile]

Joined: 2010-04-27
Posts: 3
Location: UK
Hi Prikryl,
Thanks for the reply. What I forgot to mention is that we need the resume feature as the size of files we use can be well over 1GB.

Cheers,

Simon
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Than your only option is to implement synchronization yourself. I.e. run WinSCP to list remote directory, compare the list against local directory and generate upload script with only the files your want to upload.
_________________
Martin Prikryl
sjerome
[View user's profile]

Joined: 2010-04-27
Posts: 3
Location: UK
Hi Prikryl,
Thanks again for your help. I will investigate creating the scripts for this.

Cheers,

Simon
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