Author Topic: How to automate TrID identification of the files in a directory using the CMD?  (Read 53 times)


  • Newbie
  • *
  • Posts: 1
I've got lots of files without file extensions or having wrong file extensions by using data recovery software like Recuva. I guess it is possible to write a simple batch file or a command line program to go through each and every file in a directory, identify each one's type and extension using TrID, and then assigning the most relevant file extension to the file until it has gone through every file in the directory.
Would you please help me with writing this simple program? I'm a newbie to programming.
Thank you.


  • Administrator
  • Hero Member
  • *****
  • Posts: 1689
    • Mark0's Home Page
Sorry for the late reply.

You could use the -ce switch, and run TrID against all the files in a dir typing something like:

Code: [Select]
c:\trid\> trid -ce \mydir\*.*