I have following scenario.
I've created an batch script for coping files from one server to another and that work great.
But that job work every 15 mins. Often there is no new files so there is nothing to copy.
What I need is that when copy is over, if there wasn't new files to copy not to send any notification with email, but if there was new files it was just copied then send a file with email. I have created PowerShell script for sending files. Any idea how to know that there was files copied?