Only problem is that it is exceedingly slow to execute
On a 2 month old AMD Phenom II X4 3.0 GHz machine running Windows 7, running the loop through 26 drive letters, 5 of which correspond to actual volumes, took...
start 18:16:34.75
end 18:16:35.02
270 milliseconds; slightly over a quarter of 1 second.
On a 6 year old P4 3.0 GHz machine with 4 drive letters in use...
start 18:25:09.45
end 18:25:09.78
330 milliseconds; slightly slower; about one third of a second.
I think your slowness must be due to something else.
ts slow because you are calling fsutil + find 26 times due to 26 letters of the alphabet.
Actually you're not; if you read the code, fsutil is called once for each drive letter
that exists.
That's the problem of using batch. you don't have much control over the tools you use
It helps to understand the code...