Home > Windows Systems Management Tips > Windows Systems Management and Administration > Identify file extension types with TrID
WinComputing Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS MANAGEMENT AND ADMINISTRATION

Identify file extension types with TrID


Serdar Yegulalp, Contributor
10.29.2007
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Windows, like DOS before it, uses file extensions to identify file types. But what about a file with an inaccurate extension or no extension at all?

Inaccurate or missing extensions can occur if a file has been munged during a disk recovery or automated file-renaming process or through simple user error. Typically the only way to determine the file type for such a file is to open the file in a binary / hex editor and use one's best guess. This can be extremely time-consuming if you don't have any idea what you're looking for in the first place.

More on Microsoft Windows file management


Use PageDefrag to defragment immovable system files
.

A Windows administrator's guide to file management
.
Fortunately, there are better ways to find out the file type without trial and error. Programmer Marco Pontello has written an extremely handy application, TrID, designed to simplify this process. TrID scans one or more files and attempts to match the file types against a database of binary signatures.

The results are returned in descending order of probability. For instance, it may say that a given file has a 70% chance of being a Word document and a 30% chance of being something else. This significantly narrows down the amount of trial and error you'd need to go through to open the document properly. If there's already a misleading extension on the file, such as .CHK, you can pass a command-line switch to have TrID add an extension that's the best guess for that file. The maximum number of matches per file can also be constrained with a command-line switch, which is handy if you're scanning thousands of files or more.

The program's file-identification database is in XML format and is continually updated (it currently has more than 2,800 file types), so the program itself and its signature database can be updated independent of each other. Users can scan files themselves and contribute signatures to the database as needed. (For the best results, scan as many different kinds of the same file as possible. This allows the pattern engine to determine what is common between different files of the same type.)

About the author: Serdar Yegulalp is editor of Windows Insight (formerly the Windows Power Users Newsletter), a blog site devoted to hints, tips, tricks and news for users and administrators of Windows NT, Windows 2000, Windows XP, Windows Server 2003 and Vista. He has more than 12 years of experience working with Windows, and contributes regularly to SearchWinComputing.com and other TechTarget sites.


Rate this Tip
To rate tips, you must be a member of SearchWinComputing.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Windows File Management
Windows registry hack improves offline file access for mobile users
How to format NTFS: More tricks to improve file system performance
Windows scripting secrets for disk quota management
Optimizing NTFS file system performance
TeraCopy beefs up Windows file copy operations
How to receive automatic notification of file changes
Windows System File Checker helps stop system failures
How to reverse NTFS object ownership from administrators to object's creator -- and why
Use PageDefrag to defragment immovable system files
Five Windows desktop tasks you should automate
Windows File Management Research

Windows Systems and Network Management Tools and Techniques
Windows registry hack improves offline file access for mobile users
Reducing the size of network backups in Windows
Monitor network bandwidth with CyberGauge
How to format NTFS: More tricks to improve file system performance
Key enhancements to SCCM give admins more control over assets, licensing
Archiving information with New-Item in Windows PowerShell
More tips for preventing system startup issues in Windows XP
The new Microsoft System Center: What happened to SMS and MOM?
Application lifecycle management made simple with app virtualization
New Russinovich tool scans for open file references from command line

Windows Systems Management and Administration
Tips for Windows domain controller optimization
Quick hits: Troubleshooting service account failure, batch job execution
Case Study: Troubleshooting Windows service dependency failures
Troubleshooting common Windows service failures
How to format NTFS: More tricks to improve file system performance
Key enhancements to SCCM give admins more control over assets, licensing
Windows scripting secrets for disk quota management
Optimizing NTFS file system performance
The new Microsoft System Center: What happened to SMS and MOM?
TeraCopy beefs up Windows file copy operations

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts