I created the following batch file to search for empty directories and then email them to me.
for %%A in (c:\*.txt) do if %%~zA==0 Blat -to firstname.lastname@example.org -f email@example.com -server webmail-subject "Zero byte file" -body "%%A is 0 bytes test 2"
Here is the command to run
for %A in (c:\*.txt) do if %%~zA==0 echo."%A" is empty
Now I need to make a batch file that will go into a directory that uses this convention.
So basically every day I am going to run this script and I want it to go into todays directory and look for any files that are 0 bytes. If it finds one then It needs to email me.
Thanks in advance..