Post a reply

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

Guest

Perfect.

Thank you.
bcgrossman

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

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?