How to batch rename files based on file header/metadata in Windows?

Posted by Infraded on Super User See other posts from Super User or by Infraded
Published on 2012-01-02T05:54:46Z Indexed on 2013/11/01 4:00 UTC
Read the original article Hit count: 141

Filed under:
|
|
|
|

I have a directory full of randomly named files of different types, all with no file extensions. Most are images, with some videos, and some plaintext. I've used one of the Windows versions of file to confirm the files can all be identified by their headers/metadata, but would like to automate the naming as there are roughly 2400 files.

I don't care so much about the filename as much as just having the appropriate extension for it's type. Is anyone aware of a program or script that can do this?

© Super User or respective owner

Related posts about Windows

Related posts about batch