How to automatically recover lost file extensions

data-recoveryfile extensionfile management

We're recoverying bunches of data from a crashed partition of which we had no backup, using a data recovery software. Files are getting recovered, but file names are lost.

Is there any software or method we could use to automatically scan the file headers to try to determine its type (between the most common ones: image types, different kind of source code text files, compressed files, etc) and automatically put an extension on its random name, to help then processing the data?

Maybe this PHP function will help?

Thanks in advance.

Best Answer

You can use TrID for that. There are versions for both Windows and Linux. It can scan multiple files and with the "-ae" switch it can rename each one adding the guessed extension.

Disclaimer: I'm TrID's developer.

Related Question