Quantcast
Channel: How can I view the binary contents of a file natively in Windows 7? (Is it possible.) - Super User
Viewing all articles
Browse latest Browse all 14

Answer by rbento for How can I view the binary contents of a file natively in Windows 7? (Is it possible.)

$
0
0

In Windows PowerShell:

PS C:\Users\YourName\Desktop>Format-Hex file.dll

Or its shorter form:

PS C:\Users\YourName\Desktop>fhx file.dll

Alternatively, if you prefer to have the hexdump command available, create a batch script that works with both PowerShell and Command Prompt:

  • Create a file called hexdump.bat with the following content:
@echo offpowershell Format-Hex %*
  • Copy it to C:\Windows\System32 (requires admin rights)

  • Use it via PowerShell or Command prompt

C:\Users\YourName\Desktop>hexdump file.dll           Path: C:\Users\YourName\Desktop\file.dll           00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F00000000   4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00  MZ.............00000010   B8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00  ¸.......@........

Viewing all articles
Browse latest Browse all 14

Trending Articles