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

Advertisement

bcgrossman
Joined:
Posts:
1
Location:
United States

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?
  • USRCFiles.txt (515 Bytes, Private file)
Description: script
  • USRC.bat (210 Bytes, Private file)

Reply with quote

Advertisement

You can post new topics in this forum