Topic "How to determine if WinSCP actually downloaded files vs no files matching 'mask' found"

Author Message
bcgrossman
[View user's profile]

Joined: 2016-10-05
Posts: 1
Location: United States
I am running an automatic script triggered by a scheduling program called System Scheduler

I am attaching my batch file and script.

The program runs every 20 minutes for a couple of hours. Most of the time it will not find any files to download.
When that happens I get a return code of 0 with the message: no files matching 'mask' found.

I need to determine if files were found and successfully downloaded but I can't figure out
1. How to determine if files were found
2. How I should code getting the information
3. Where to put the code

so that my batch file will send me an email if files are actually downloaded.

Can you help?
USRCFiles.txt (515 Bytes) Private file

Description: script

USRC.bat (210 Bytes) Private file

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
There's option failonnomatch for this purpose:
https://winscp.net/eng/docs/scriptcommand_option#failonnomatch
Guest




Perfect.

Thank you.
Advertisements

You can post new topics in this forum

Search

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