batch script to detect empty file,send alert and delete it

July 11, 2012 at 07:57:22
Specs: Windows 7
Hi,

I am new to batch script,I have the following requirement,

1.Check if the file exist
2.Check if the file is empty,if empty send alert and delete the file
3.if not empty copy the files from one dir to another dir
4.filename has sequence in it,need to check if there are any missing seq

Thanks in advance.


See More: batch script to detect empty file,send alert and delete it

Report •

#1
July 11, 2012 at 08:04:07
What do the filenames look like and are there multiple files that need to be copied in one go?

Tony


Report •

#2
July 11, 2012 at 08:22:11
Thanks for the reply.

the filename is like AAAA_BBBB_CCCCC_20120604140221_000006.dat,both timestamp and seq no will be changing.

need to send alert to user if there are any missing sequence no.we will recieve either single file or multiple file for every 30 mins


Report •

#3
July 11, 2012 at 09:50:14
Do the sequence numbers have any consistency? Do they always start at 1 or 0 and end at a certain number?

Tony


Report •

Related Solutions

#4
July 11, 2012 at 10:04:21
No,As of now we know its 6 digit and it is not the same.

Report •

Ask Question