This means what?
it means 5 files are created one by another with zero bytes, like this
dat_9_2_2019_18_50.log 0 bytes
dat_9_2_2019_19_30.log 0 bytes
dat_9_2_2019_20_43.log 0 bytes
dat_9_2_2019_22_10.log 0 bytes
dat_9_2_2019_23_25.log 0 bytes
that 5 files are deleted PC should reboot after that and counter will have number 1 in counter.txt
dat_10_2_2019_00_50.log 0 bytes
dat_10_2_2019_01_30.log 0 bytes
dat_10_2_2019_02_43.log 0 bytes
dat_10_2_2019_03_10.log 0 bytes
dat_10_2_2019_04_25.log 0 bytes
that 5 files are deleted PC should reboot after that and counter will have number 2 in counter.txt
dat_10_2_2019_05_50.log 0 bytes
dat_10_2_2019_06_30.log 0 bytes
dat_10_2_2019_06_43.log 0 bytes
dat_10_2_2019_08_10.log 0 bytes
dat_10_2_2019_09_25.log 0 bytes
that 5 files are deleted PC should reboot after that and counter will have number 3 in counter.txt
I get an email that something is wrong and script stop to reboot PC until I delete counter.txt or change number 3 in it to 0
it can be situation like this one
dat_5_2_2019_18_50.log 10 Kbytes
dat_5_2_2019_19_30.log 0 Kbytes
dat_5_2_2019_20_43.log 10 Kbytes
dat_5_2_2019_22_10.log 0 bytes
dat_5_2_2019_23_25.log 8 Kbytes
Files with 0 bytes should be deleted and counter.txt should have 0 in it
or like this one
dat_4_2_2019_18_50.log 10 Kbytes
dat_4_2_2019_19_30.log 11 Kbytes
dat_4_2_2019_20_43.log 10 Kbytes
dat_4_2_2019_22_10.log 0 bytes
dat_4_2_2019_23_25.log 8 Kbytes
File with 0 bytes should be deleted and counter.txt should have 0 in it