|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mrsam3 in MS DOS
I created the following batch file to search for empty directories and then email them to me.
@echo off
for %%A in (c:\*.txt) do if %%~zA==0 Blat -to user@curesolutions.com -f user@curesolutions.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.
20091027
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.
Any suggestions?
Thanks in advance..
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625