hex2bin 软件使用说明

hex2bin 软件使用说明

1. 解压缩软件

解压缩软件

目标目录

2.拷贝hex文本文件

将你的hex文本文件myHexFile.txt拷贝到hex2bin的解压缩目录中

C:\share\test\hex2bin\hex2bin\win64>dir
 Volume in drive C is NetApp_Win10
 Volume Serial Number is 3C81-A4AD

 Directory of C:\share\test\hex2bin\hex2bin\win64

01/15/2024  06:52 PM    <DIR>          .
01/15/2024  06:51 PM    <DIR>          ..
01/15/2024  05:55 PM         3,282,653 hex2bin.exe
01/15/2024  06:47 PM           110,112 hexdump.exe
01/15/2024  06:12 PM               146 myHexFile.txt
               3 File(s)      3,392,911 bytes
               2 Dir(s)  281,271,402,496 bytes free   

2.打开hex文本文件

计算出红色方框内要被扣掉的字符个数(本例中为6),以及绿色方框内要保留最终导入到二进制bin文件的字符个数(本例中为47)
在这里插入图片描述

3.运行软件

运行一下两条命令生成myHexFile.bin文件。

C:\share\test\hex2bin\hex2bin\win64>hex2bin.exe -i myHexFile.txt -o myHexFile.txt.new -s 6 -l 47

C:\share\test\hex2bin\hex2bin\win64>hex2bin.exe -i myHexFile.txt.new -o myHexFile.bin -p

C:\share\test\hex2bin\hex2bin\win64>dir
 Volume in drive C is NetApp_Win10
 Volume Serial Number is 3C81-A4AD

 Directory of C:\share\test\hex2bin\hex2bin\win64

01/15/2024  06:41 PM    <DIR>          .
01/15/2024  06:07 PM    <DIR>          ..
01/15/2024  05:55 PM         3,282,653 hex2bin.exe
01/15/2024  06:41 PM                16 myHexFile.bin
01/15/2024  06:12 PM               146 myHexFile.txt
01/15/2024  06:40 PM                32 myHexFile.txt.new
               4 File(s)      3,282,847 bytes
               2 Dir(s)  281,549,701,120 bytes free

4.查看生成的bin文件

C:\share\test\hex2bin\hex2bin\win64>hexdump.exe myHexFile.bin
000000  00 00 00 00 00 40 30 00 00 00 00 00 00 20 30 00
  • 7
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值