View Single Post
Old 04-04-2008   #2 (permalink)
Steven Murawski


 
 

Re: Read and search through a binary file

Robertico,

This might get you started -
http://www.microsoft.com/technet/scr.../payette2.mspx

It's an excerpt from Windows Powershell in Action and there is a
Get-HexDump function and some other info that could get you started.

Both Get-Content and Select-String can read from binary files.

Steven Murawski
Steven Murawski

Robertico wrote:
Quote:

> Is it possible to read and search through a binary file.
> I've a binary file an i'd like to search for certain hex values (markers).
> After that i need to read eight bits just before the previous founded values.
> (It's not a structured file)
>
> Thanks in advanced,
>
> Robertico
My System SpecsSystem Spec