How do I automate a process to find out file types for .tmp files?

Recently our NAS server started crashing and with it, about 800 files all throughout our server were turned into .tmp files.  We are able to open up those files using Microsoft Office software (Access, Excel, Word), but it's trial and error.  I would like to run a script or program that could identify the file types for these files and resave the extension to help lead us on the path of restoration.  Sadly none of the files were backed up, so we are stuck with only these files.  Because the files are spread across our server, I also want to renamed file to be saved in the existing folder as that is the only way at this point we can identify the files.

All of the file names are now a seemingly random string of 8 letters and numbers.

Has this happened to anyone else?  Is there software we can purchase?  Scripts we can run?  Please advise.
Thanks!

All of the files have been moved to a more stable environment and backup is now done regularly.  We just need to solve the issue of identifying the files and their correct file types.
tmp-string.jpg
David HulnickSenior Manager Information TechnologyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Arman KhodabandeIT Manager and ConsultantCommented:
I had the same problem too but not with the tmp files!
The problem which I'm talking about happens to me very often. When you run checkdisk on a flash memory sometimes checkdsk saves your files into a Found001 folder in dll files! It's a very bad disaster!
However after checking a lot of sites and researching I found a software which detects many file formats but I don't know if it can be used in a batch mode to recover many files. I've only used it for single files.
If your files don't exist in it's database you can train it to search for the types that you define.

More info here . . .

Remember that you must download both program and it's offline database.
Extract the database in the root program directory and then scan database from inside of the program. It'll manage it.

Good luck
P.S. > Here is a little info on file types.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David HulnickSenior Manager Information TechnologyAuthor Commented:
Thanks.. the above solution worked for identifying single files, but not for multiple files at once.  This is definitely getting us on the right path.  I'm still hoping to find something that can identify multiple files and also automatically change the file type based on what is discovered.
Arman KhodabandeIT Manager and ConsultantCommented:
I searched a lot for this and found this the best available solution! (My files were important)!
But we will wait for a probable answer.
David HulnickSenior Manager Information TechnologyAuthor Commented:
This helped, but didn't fully solve the solution as it remains to be a manually solution.  Thanks!
Arman KhodabandeIT Manager and ConsultantCommented:
You're welcome, That was all I could help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.