Does the filename show up on the screen when it going through the files?

Put @serror and/or @result on the lines following the del and see what it tells you.
_________________________
(... better days ahead)