S
S
Sergey K2018-03-05 12:01:26
PowerShell
Sergey K, 2018-03-05 12:01:26

How to compare two files byte by byte?

Is there an easy way in Powershell to compare two files byte by byte, a kind of analogue of fc on cmd?
Compare-object gives this:

spoiler
5a9d09eb0d8c7916976821.png

The expected result is something like this:
spoiler
5a9d0a27defc6446201288.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2018-03-05
@azarij

Compare-Object -ReferenceObject (Get-Content .diskcapacity.csv) -DifferenceObject
(Get-Content .diskcapacity2.csv)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question