Code: Select all
Filename:original.exe
Filesize:1416277
00008549: F9 09
0000915A: 15 16
0000956A: 74 90
00127420: 37 78
00125824: 7A F8
I wrote this batch.bat
Code: Select all
@echo off
echo %~1 > out.dat
echo %~z1 >> out.dat
fc /b %1 %2 >> out.dat
pause
and I get this result
Code: Select all
original.exe
1416277
Confronto in corso dei file original.exe e modified.exe
00008549: F9 09
0000915A: 15 16
0000956A: 74 90
00127420: 37 78
00125824: 7A F8
So far so good, but I would like to have the first 2 lines in the form
Filename:original.exe
Filesize: ...
and delete the useless 3rd line
How do I have to change the batch.bat?