China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 15:16
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » What DOS program can replace data in binary files? View 1,208 Replies 1
Original Poster Posted 2003-09-04 00:00 ·  中国 湖北 武汉 联通
初级用户
Credits 182
Posts 28
Joined 2002-12-13 00:00
23-year member
UID 501
Gender Male
Status Offline
If it can be used on the command line, then it can be written into an automatic batch file.
Find and replace, or start at a certain byte position and overwrite 3 bytes, for example: 888
If not, then I'll just write one myself.
Floor 2 Posted 2003-09-17 00:00 ·  中国 山东 烟台 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re atoms:
change will do. It can be used on the command line, and its output can be suppressed, though the parameters are a bit troublesome. It used to be available for download in the New DOS Age.
String usage: change filename /form apple /to banana
Decimal usage: change filename /from \010 /to \010\013
Hex usage: change filename /from &h0a /to &h0d&h0a

Also, one called hexc.exe works too, and the parameters are relatively simple. I originally downloaded it from "Qibu":
String usage: hexc oldfile newfile "string1" "string2"
Hex usage: hexc oldfile newfile 0a 0d0a
Mixed usage: hexc oldfile newfile "apple"0d0a "apple"0d0a" "
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Forum Jump: