I want to create a batch file that will delete all gid files throughout my hard drive.

looking at the deltree command:

Deltree
Deletes a directory and all the subdirectories and files in it.

Syntax:
To delete a directory and all the subdirectories and files contained therein:
DELTREE [/Y] directory

Obviously not only will it delete files but also directorys, not what I want at all.

I could try something like:

del c:\*.gid

but that would only delete gid files in a single directory not all sub directorys. I would asume this would not be dificult, useing perl I couldeasily do this kind of thig, but Im talking batch not perl.

Does someone know if there is a way to delete not only gid files under root but all sub directorys as well, I know in linux you can spesify the -r option to ask for recursive deletion.

Sugestions are welcomed.