Does HxD have such command-line switch which would allow to compare two files? I.e. can I compare two files using something similar to the following? -
HxD.exe /cmp "file 1" "file 2"
If not, can it be a feature request?
Compare two files from command line
Re: Compare two files from command line
Currently, there is no such feature. How would the output look like?
Re: Compare two files from command line
Originally, I assumed it could work in the same manner as HxD's menu item Analysis -> File-compare -> Compare... works.Maël wrote:Currently, there is no such feature. How would the output look like?
I.e. I meant that when you start HxD from command line with the following parameters:
HxD.exe /cmp "file 1" "file 2"
it shows HxD's window with the files "file 1" and "file 2" opened one under another (as the Compare... does) and selects first non-matched byte.
Re: Compare two files from command line
I'm a different guest, and I'd like to second this idea. It would be very useful to me to be able to provide two files from the command line and have HxD open both and start the compare function.
Thanks!
Thanks!
Re: Compare two files from command line
Ok, on TODO-list.
Re: Compare two files from command line
Still watching anxiously for this feature.
Basically, invoke 2 file names with a "-diff" parameter flag,
send them to the file comparison routine.
- Ability to parse command-line flags ?
- Ability to parse command-line file name ?
- Diff/comparison functionality exists ?
Sounds like about 10 to 15 lines of program code to add that in, but
now 9 months later we still haven't seen it; must have been more difficult
than we thought.
Basically, invoke 2 file names with a "-diff" parameter flag,
send them to the file comparison routine.
- Ability to parse command-line flags ?
- Ability to parse command-line file name ?
- Diff/comparison functionality exists ?
Sounds like about 10 to 15 lines of program code to add that in, but
now 9 months later we still haven't seen it; must have been more difficult
than we thought.
Re: Compare two files from command line
Windows has a binary comparison tool built in, invoke it with "FC /B file1.bin file2.bin"
Starting File Comparison from Command Line
Thanks for a fantastic program!!! Is there a command line option to start HxD in file compare mode?
Re: Starting File Comparison from Command Line
Thanks for your feedback. Merged with another feature request similar to yours (see above).