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 05:22
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29) View 112,554 Replies 565
Floor 421 Posted 2008-11-28 19:06 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
I was on a business trip some time ago. I just got home at 6:30 pm today. According to everyone's request, I will add a parameter to extract the ID value. Please wait for a few days.
Floor 422 Posted 2008-11-29 12:45 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Add a switch to display the partition ID value /GetID (applicable to /L and /find commands)

Usage:
dsptw 0 /l /getid

dsptw 0 /find:all /getid
Attachments
dsptw.rar (22.64 KiB, Credits to download 1 pts, Downloads: 757)
Floor 423 Posted 2008-11-29 17:06 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Downloaded. Supports updates.
Windows 一键还原
http://www.yjhy.com
Floor 424 Posted 2008-11-30 17:35 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Resolutely support the original poster!
Floor 425 Posted 2008-11-30 20:02 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
It's really very easy to use. Please the landlord combine it with dos into one file, for convenience.

Give a little suggestion, can it be like this:
dsptw 0 /l /getid------------------->Current function, display the ID of all partitions
Sometimes it may be more convenient like this:
dsptw 0 /l /getiD:n----------------->Only display the ID of the nth partition

[ Last edited by qwe123456 on 2008-11-30 at 20:06 ]
Floor 426 Posted 2008-11-30 22:18 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by qwe123456 at 2008-11-30 20:02:
It's really easy to use. Please, the landlord combine it with DOS into one file, which is convenient.

Some minor suggestions, can it be like this:
dsptw 0 /l /getid------------------->Current function, display the ID of all partitions
Sometimes it may be more convenient like this:
dsptw 0 /l /getiD:n----------------->Only display the ID of the nth partition


It's easy to combine the Win32 version and the DOS version into one file. I'll complete it in the next few days. The part to be changed to only display the ID of the nth partition is a bit more, so I can only modify it when I'm free.
Floor 427 Posted 2008-12-01 23:24 ·  中国 广西 河池 宜州区 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Oh, okay, support you
Floor 428 Posted 2008-12-01 23:28 ·  中国 广西 河池 宜州区 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
Hey, by the way, I changed my ID. DOSroot helped me change it, but I still don't know who he is. I'll thank him another day. If anyone knows who he is, let me know, heh heh
Floor 429 Posted 2008-12-02 13:14 ·  中国 江苏 南京 电信
新手上路
Credits 2
Posts 1
Joined 2008-09-13 09:15
17-year member
UID 125530
Gender Male
Status Offline
Downloaded. Supports updates.
Floor 430 Posted 2008-12-09 22:51 ·  中国 浙江 衢州 电信
新手上路
Credits 16
Posts 5
Joined 2007-10-15 23:47
18-year member
UID 99860
Gender Male
Status Offline
Floor 431 Posted 2008-12-11 10:15 ·  中国 福建 宁德 电信
新手上路
Credits 2
Posts 1
Joined 2008-12-10 17:39
17-year member
UID 133452
Gender Male
Status Offline
Good stuff
Floor 432 Posted 2008-12-11 14:18 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Can we add a function to copy the content with a specified offset and length in a certain sector to another specified position or save it as a file?
QQ:366840202
http://chenall.net
Floor 433 Posted 2008-12-11 19:24 ·  中国 北京 电信
高级用户
★★
流落街头
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-11 14:18:
Can you add a function.
Copy the content of a specified offset and specified length in a certain sector to another specified location or save it as a file?


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

Or download it from post 389

[ Last edited by 19951001 on 2008-12-11 at 22:57 ]
Floor 434 Posted 2008-12-12 10:00 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
The same question as the upstairs, how to apply it under win32????

2008.11.1
Diskrw for Dos
Changes from the original version

1. Add parameter Offset
This parameter is used to specify the offset position inside the file, the default value is 0 (the start of the file)
If the value of Offset is given, but the file does not exist, the given Offset value is ignored.
Example:
Diskrw C: 0 10 /S sector.bin 10
Write 10 sectors starting from the starting position of disk C: into file sector.bin. If the file does not exist, the size of sector.bin is 5120 bytes,
If the file exists, such as if the file size is less than 10 bytes, the program will give an error message. If the file size is greater than or equal to 10 bytes, the program will write the sector
The content is written into the 5120 bytes starting from offset 10 of the file. The original information in the file will be overwritten (if the file length is less than 5130 bytes, the file length
increase).

---------------------------------------

If this function is added, in combination with /e/s/r, it will greatly expand the function of this software. For example, it can directly modify the file, (write the file into the sector, then take out or modify the useful parts in it, then write it back to the file), and become a file editor.

[ Last edited by goli2008 on 2008-12-12 at 11:32 ]
Floor 435 Posted 2008-12-12 20:57 ·  中国 广东 广州 电信
新手上路
Credits 2
Posts 1
Joined 2008-12-12 01:07
17-year member
UID 133607
Gender Male
Status Offline
Looking forward to the next version update. Thanks~~~~~~~
‹ Prev 1 27 28 29 30 31 38 Next ›
Forum Jump: