well, what i want to do, is check a bunch of files in a directory, and be sure that their picture files. if their not picture files delete them. i want to be sure that its either a .jpg, .gif, .bmp, .png. But not all the file handles are lower case, some of them are .GIF, .JPG etc.

how do i check to be sure that all the files in a certain directory are picture files.