[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.

Question
[x]
Attachment Details

Empty Directory Batch File

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..


[+][-]10/27/09 01:39 PM, ID: 25677179Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 12:12 PM, ID: 25697160Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/09 01:15 PM, ID: 25697782Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/15/09 05:00 PM, ID: 25827235Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/15/09 06:13 PM, ID: 25827457Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625