TrId2Console Papyrus7914
Use this command to install TrId2Console:
winget install --id=Papyrus7914.TrId2Console -e Console utility to detect a file type based on its content. This tool is similar to TrID and UNIX File.
winget install --id=Papyrus7914.TrId2Console -e Console utility to detect a file type based on its content. This tool is similar to TrID and UNIX File.
C++ library and Console utility to detect a file type based on its content. This tool is similar to TrID and UNIX File.
The tool reads up to 10MB of the file, goes through its database, and finds the most likely file-type candidates.
TrId2Console-windows-x64 - portable Windows x64 executable (requires Windows 10 or higher)TrId2Console-linux-x64 - portable Linux x64 executableTrId2Console-macos-arm64 - portable macOS arm64 executable--help parameter to get the usage information):> TrId2Console C:\Windows\System32\ntdll.dll
33.2% (exe) Win64 Executable (generic)
Url: https://en.wikipedia.org/wiki/Portable_Executable
MimeType: application/octet-stream
25.6% (exe) Win16 NE executable (generic)
Url: https://en.wikipedia.org/wiki/Windows_3.0
MimeType: application/octet-stream
10.5% (icl) Windows Icons Library (generic)
Url: http://fileformats.archiveteam.org/wiki/Icon_library
MimeType: image/x-ms-icl
10.3% (exe) OS/2 Executable (generic)
Url: https://en.wikipedia.org/wiki/OS/2
MimeType: application/octet-stream
10.2% (exe) Generic Win/DOS Executable
MimeType: application/octet-strea
> TrId2Console.exe --json C:\Windows\System32\ntdll.dll
[
{
"Description": "",
"FileNameExtensions": [
"exe"
],
"MimeType": "application/octet-stream",
"Name": "Win64 Executable (generic)",
"Probability": 33.19083969465649,
"Url": "https://en.wikipedia.org/wiki/Portable_Executable"
},
...
TrId2Lib.zip from the latest release and add the extracted folder to your projectTrId2Database.h header