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-22 13:41
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] Please teach how to modify the content of the file address using commands View 3,348 Replies 19
Original Poster Posted 2004-07-13 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
The N T L D R in the position of the yellow status bar as shown. For example, I want to change it to $ L D R $

http://61.130.50.195/rtdw/UploadFile/2004-7/200471318195489.jpg

www.51ct.net
Floor 2 Posted 2004-07-13 00:00 ·  中国 四川 成都 彭州市 电信
中级用户
★★
Credits 445
Posts 110
Joined 2004-05-28 00:00
22-year member
UID 25533
Gender Male
Status Offline
I used to use a command-line software to modify files in binary mode before. It's been too long, and I don't know where it was put. It seems to be brought by a game modification tool.

By the way: Can't we use the method of replacing files?
Or: Use debug to read the first xxx bytes of the first file and save them as file 1, then copy 1.bin+2.bin /b 1.bin
(2.bin is the modified second half, and 1.bin is the first half of the original file)
Floor 3 Posted 2004-07-13 00:00 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Take a look at this page: http://cyberside.dyn.ee/freesoft/txtms01.htm

I quite like:
4. GSAR
5. Change
3. Alter
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 4 Posted 2004-07-14 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Hehe! Just a whim.

If I want to read a long article, I just...
www.51ct.net
Floor 5 Posted 2004-07-14 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
It's not an article, but software. The kind of software you want.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2004-07-15 00:00 ·  中国 广东 清远 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
How exactly should these software be used to solve the problem I mentioned?

I tried change, but it didn't work.


www.51ct.net
Floor 7 Posted 2004-07-15 00:00 ·  中国 广东 清远 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
The following is a quote from wangsea on July 13, 2004, 07:26:22 AM:
I used to use a command-line software to modify files in binary mode before. It's been too long, and I don't know where it was put. It seems to be a game modification tool.

By the way: Can't we use the method of replacing files?
Or: Use debug to read the first xxx bytes of the first file and save it as file 1, then copy 1.bin+2.bin /b 1.bin
(2.bin is the modified second half, and 1.bin is the first half of the original file)



The file is random and cannot be pre-made for replacement.

I don't know how to use debug.
www.51ct.net
Floor 8 Posted 2004-07-15 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Just look at the instructions. The several software I mentioned earlier all support the functions of finding and replacing hexadecimal codes. But since I don't need them, I haven't tried either.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 9 Posted 2004-07-15 00:00 ·  中国 四川 成都 电信
中级用户
★★
Credits 445
Posts 110
Joined 2004-05-28 00:00
22-year member
UID 25533
Gender Male
Status Offline
It's very simple to use debug. Create the following two files:

cut.bat Content:
debug ntldr<do.txt

do.txt Content:
r cx
100
r bx
0000
n ntldr1.bin
q

-----------------------------------------------
Note that the 100 in do.txt above refers to hexadecimal, that is, 100H bytes (you can just change this value to intercept different bytes).
After creating these two files, execute cut.bat to generate a ntldr1.bin (intercepting 100H bytes of ntldr) file.
Floor 10 Posted 2004-07-15 00:00 ·  中国 四川 成都 青羊区 电信
中级用户
★★
Credits 445
Posts 110
Joined 2004-05-28 00:00
22-year member
UID 25533
Gender Male
Status Offline
Finally found this software from an old disc: edithex. The file size is 17K, a DOS program specially used for binary data replacement, and it's in Chinese version. How should I give it to you if you want it?
Floor 11 Posted 2004-07-15 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Does this program have a command-line mode?
www.51ct.net
Floor 12 Posted 2004-07-15 00:00 ·  中国 四川 成都 电信
中级用户
★★
Credits 445
Posts 110
Joined 2004-05-28 00:00
22-year member
UID 25533
Gender Male
Status Offline
edithex.exe is in command - line mode.
Floor 13 Posted 2004-07-15 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
It seems to need to be entered manually. Is there an automatic mode?
www.51ct.net
Floor 14 Posted 2004-07-15 00:00 ·  中国 四川 成都 金牛区 电信
中级用户
★★
Credits 445
Posts 110
Joined 2004-05-28 00:00
22-year member
UID 25533
Gender Male
Status Offline
Do you want cut.com, which functions to split large files into subfiles of specified size, with extensions 001, 002, ...

Usage: cut
nnn in KB unit.
Floor 15 Posted 2004-07-15 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
But I just need to modify, not split. It would be perfect if edithex can do it without manual input.
www.51ct.net
Forum Jump: