Clear Thumbnails

Is there any way to know what CCleaner is running to clean the thumbnail cache, or a way to script just that function?

I'd like to set up something on a computer to automatically clean the thumbnail cache, but I'm not sure what to run.

Is there anyone who could help me with that info?

Thanks!

from a simplistic point of view, why not write a Batch file and have it include sub-directories as it deletes all thumbs.db files?