foxidrive wrote:you argued about moving the "setlocal enabledelayedexpansion" line
I don't remember arguing about that one since at the time I understood little about its use and in fact I still don't understand it perfectly. I tend to challenge everything I hear in an attempt to understand it better, so sorry if you perceived this as persistent arguing or whining. I certainly wouldn't have arrived at my current script without your help.
you complained about the filesize routine but ignored my post telling you why your routine failed
Hmm I don't remember that either. In fact I did have a few files bigger than 2GB, so I'm sure it did fail but I hadn't noticed it yet since the vast majority of my files were smaller than that. I didn't ignore your advice on that however and you may have noticed that the next script I posted did the rounding differently. (It first discarded enough low order digits that the 32 bit limit was no longer an issue). My current script for MP3s doesn't do any rounding since it prints out more digits and I thought any change due to rounding would be even less significant than before.
you ignored me saying that processing the entire set of results would be faster
Yes, sad to say I did do that. That was unfortunate because it led me to spend a lot of time on a script that I eventually had to discard because it was too slow. Fortunately you re-iterated that suggestion and I did listen the 2nd time

What is pointless is echoing anything at all when you want speed.
I really wanted to echo something indicating the progress, such as a path name or a file count but all the ways I tried to do that slowed things down significantly. I agree that the row of dots I'm now using doesn't have much value but I still think it is better than nothing. I would remove that as well if it were slowing things down, although after I switched to the echo method suggested by another reply on this thread I found that I could barely measure the slow down due to the echo.
I'm no longer considering other solutions since the batch file is now fast enough. Plus I think more than half the time is now spent executing ffprobe, which means there is not much left to be gained. Also the script is now simple enough it could probably be easily adapted to linux, or any OS supporting sed. (I'm not likely to do that myself however). I suspect ffprobe is actually doing quite a bit more than I need, so a faster alternative might be available. Since it's running fast enough at this point I didn't put it much effort in that direction.
Anyway, thanks again for all your help and for putting up with my whining. If you are interested I'll post the final version of my video file script when I finish it, which will probably look quite similar to my final mp3 file script.
~Paul