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-30 06:27
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29) View 112,561 Replies 565
Floor 436 Posted 2008-12-12 22:17 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Originally posted by 19951001 at 2008-12-11 07:24 PM:


Diskrw can meet your requirement:
http://www.cn-dos.net/forum/attachment.php?aid=4386&checkid=090a9&download=1
Run it under DOS

Or download it from post 389

[ Last edi ...

Tried it. Only the latest DOS version has this function, while the WIN32 version doesn't. I wonder how to achieve it?
QQ:366840202
http://chenall.net
Floor 437 Posted 2008-12-12 22:54 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by chenall at 2008-12-12 22:17:


Tried it, only the latest DOS version has this function, the WIN32 version does not have this function. I don't know how to implement it?


The following software can be used in combination to achieve it:
http://www.cn-dos.net/forum/viewthread.php?tid=39834&fpage=2
Floor 438 Posted 2008-12-13 11:01 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Great! Really a master. I've been looking for a long time, it's just this one. Could you please change the post title to make it easier for others to search?
Floor 439 Posted 2008-12-13 18:10 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
It's done, thank you the landlord ^_^
QQ:366840202
http://chenall.net
Floor 440 Posted 2008-12-13 22:33 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by goli2008 at 2008-12-13 11:01:
Great, really an expert. I've been looking for a long time, just this one.
Could you please change the post title to make it easier for others to search?


Is it the title of this post? I usually write the update time and software name on it
Floor 441 Posted 2008-12-15 14:29 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Floor 442 Posted 2008-12-18 09:54 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
diskrw 0 0 ?? /r 1.exe

Regarding the issue of writing files, the sector parameters are too rigid. It has to be exactly consistent with the file's sectors to write. The problem is that the number of sectors in the file is sometimes difficult to calculate (or is uncertain). Can this parameter be modified or canceled, or when set to 0, can it default to writing according to the file length (automatically calculate sectors)?

Wait...
Floor 443 Posted 2008-12-18 13:57 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
dspt 1 0 0x3 /e /hex:010203 /y
This command clears all data in the sector!!!!!
Floor 444 Posted 2008-12-19 21:50 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by goli2008 at 2008-12-18 13:57:
dspt 1 0 0x3 /e /hex:010203 /y
This command clears all data in the sector!!!!!

In DSPT, the /e

DSPT
/E: Clear Disk Sector Info

This is of course to clear the sector content, what you said is correct, what's so strange about this.
Attachments
aaa.GIF
Floor 445 Posted 2008-12-19 21:52 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by goli2008 at 2008-12-18 09:54:
diskrw 0 0 ?? /r 1.exe

Regarding the issue of writing to a file, the sector parameters are too rigid; you have to be exactly in sync with the file's sectors to write. The problem is that the number of sectors in the file is sometimes hard to calculate (or uncertain)...


In DOS, you can write part of a sector, and it doesn't require writing the entire sector
Floor 446 Posted 2008-12-20 15:06 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Originally posted by 19951001 at 2008-12-19 21:50:


In dspt, the /e

DSPT
/E: Clear Disk Sector Info

This is of course to clear the sector content, what you said is correct, what's so strange about this.

This is correct,
But I am using a combined version of dspt and diskrw,
And the /E parameter of diskrw is for modification:
2008.9.27
Win32 version diskrw updated
http://upload.cn-dos.net/img/798.rar


The content of this modification:
1 Command adjustment, the original /E command (delete sector content) is changed to /F command (sector content filling)
The original /E command fills the specified sector with 0
The current /F command can fill the sector with any value. If no Value is entered, it performs the same function as the original version's /E command

DISKRW
/F: Fill Disk Sector Info with Value
Value: an Integer (0..255), default is 0

2 Command adjustment, change the command to modify the sector from the original /M (Modify) to /E (Edit) for more intuitive

DISKRW
SectorNo: Absolute/Relative Sector No. of Disk
Offset: The Offset in Specified Sector (0..511)
/E: Edit Disk Sector Info
/HEX: Hex Style
Value: Hex Digital String (No more than 32 characters)

So, can we unify the parameters?
Floor 447 Posted 2008-12-20 15:08 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
In addition, please take a look,
str 1.exe 0x03 0 /e /hex:0011
An error occurs when writing 00. Later, when I used the E parameter of dspt to write, I found out that it was to clear the sector.
Floor 448 Posted 2008-12-20 15:12 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by goli2008 at 2008-12-20 15:06:
But I am using the combined version of dspt and diskrw, and the /E parameter of diskrw is for modification:
September 27, 2008
Win32 version diskrw updated
http://upload.cn-dos.net/img/7 ... In the new version of diskrw, the modification command has been changed from the original /M to /e But it has never been changed in dspt. When you use /e in dspt, the program will also ask you whether to clear the sector content, haven't you noticed. I have never released any combined version of dspt and diskrw [ Last edited by 19951001 on 2008-12-22 at 20:10 ]
Floor 449 Posted 2008-12-20 15:13 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by goli2008 at 2008-12-20 15:08:
Also, please take a look,
str 1.exe 0x03 0 /e /hex:0011
An error occurs when writing 00. Later, when I used the E parameter of dspt to write, I才发现 to clear the sector.


str has been updated
Floor 450 Posted 2008-12-20 15:26 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
The test is correct, thank you very much!!!
‹ Prev 1 28 29 30 31 32 38 Next ›
Forum Jump: