Skip to content

About

轻量便携的 Windows 文件架构检测工具,支持快速识别 x86、x64、ARM、ARM64 等架构,并支持拖放、批量及命令行检测。A lightweight Windows tool for detecting file architectures, supporting x86, x64, ARM, ARM64, drag-and-drop, batch, and command-line detection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

BitChecker

拖入文件即可判断它是 32 位还是 64 位的小工具。

功能

  • 拖拽文件到窗口,自动判断位宽,支持批量拖入
  • 支持的文件类型:
    • exe / dll / sys / ocx — 直接读取 PE 头 Machine 字段判断
    • msi — 解析复合文档 (CFB) 的 Template 摘要属性,可识别 x64 / Intel / Arm64
    • msix / appx — 读取 AppxManifest.xml 中的 ProcessorArchitecture
    • zip 压缩包 — 扫描包内的 exe/dll 组件判断位宽
    • lnk 快捷方式 — 自动解析指向的目标文件
  • 额外识别:
    • .NET 程序区分"仅限 32 位"和"任意 CPU"
    • ARM / ARM64 / IA64 / RISC-V 等架构
  • 支持命令行模式:BitChecker.exe <文件...>,输出 路径 + Tab + 结果,便于批处理

使用方法

双击 BitChecker.exe,把安装包或程序文件拖进窗口即可。

命令行模式:

BitChecker.exe "C:\path\to\setup.exe"

编译

无需安装任何 SDK,直接用 Windows 自带的 .NET Framework 编译器:

powershell -ExecutionPolicy Bypass -File .\build.ps1

输出 BitChecker.exe(约 19 KB,单文件,依赖系统自带的 .NET Framework 4.0+)。

文件结构

BitChecker/
├── Program.cs    # 全部源码(检测逻辑 + WinForms 界面)
├── build.ps1     # 编译脚本
└── BitChecker.exe  # 编译产物(不随源码提交)

原理

判断依据是 PE 文件头中的 Machine 字段:

值 含义
0x8664 64 位 (x64)
0x014C 32 位 (x86)
0xAA64 64 位 (ARM64)

About

轻量便携的 Windows 文件架构检测工具,支持快速识别 x86、x64、ARM、ARM64 等架构,并支持拖放、批量及命令行检测。A lightweight Windows tool for detecting file architectures, supporting x86, x64, ARM, ARM64, drag-and-drop, batch, and command-line detection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages