Topic "Need Help Disabling Prompts"

Author Message
charlie.brush
[View user's profile]

Joined: 2012-09-29
Posts: 1
Location: US
I setup a basic script on Windows Server 2003 machine which synchronizes an Excel file (which gets updated) to an FTP server.
I will setup a Scheduled Task for this to run every morning during the weak.
The script works, but the "Synchronize" prompt appears which forces me to click on "OK." I even selected the checkbox for "Use same options next time" but still get this prompt every time the script is run.
I need for OK to be clicked automatically.
If there were no changes in the file, a dialog box comes up which says "No differences found."
I need to disable this prompt as well.
I have been reading this website and it has helpful info, but I haven't been able to figure this out.
Here's the script. I removed the real info for security reasons.
winscp.exe ftp://Username:Password@ftp.files.com /synchronize // "D:\Data\Export" "/Excel File"

Thanks for any help!

Charlie
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Use scripting, with command "synchronize". Do not use /synchronize command-line parameter, it is not intended for automation.

Read
http://winscp.net/eng/docs/guide_automation
http://winscp.net/eng/docs/scriptcommand_synchronize
_________________
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