中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-25 05:53
47,815 topics / 349,928 posts / today 0 new / 48,288 members
DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29)
Printable Version  126,124 / 565
Floor421 19951001 Posted 2008-11-28 19:06
高级用户 Posts 272 Credits 570 From 北京
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.
Floor422 19951001 Posted 2008-11-29 12:45
高级用户 Posts 272 Credits 570 From 北京
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)
Floor423 lianjiang2004 Posted 2008-11-29 17:06
金牌会员 Posts 1,884 Credits 3,946
Downloaded. Supports updates.
Floor424 goli2008 Posted 2008-11-30 17:35
中级用户 Posts 97 Credits 252
Resolutely support the original poster!
Floor425 goli2008 Posted 2008-11-30 20:02
中级用户 Posts 97 Credits 252
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 ]
Floor426 19951001 Posted 2008-11-30 22:18
高级用户 Posts 272 Credits 570 From 北京
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.
Floor427 goli2008 Posted 2008-12-01 23:24
中级用户 Posts 97 Credits 252
Oh, okay, support you
Floor428 goli2008 Posted 2008-12-01 23:28
中级用户 Posts 97 Credits 252
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
Floor429 abs117 Posted 2008-12-02 13:14
新手上路 Posts 1 Credits 2
Downloaded. Supports updates.
Floor430 semenyung Posted 2008-12-09 22:51
新手上路 Posts 5 Credits 16
Floor431 fjwjj Posted 2008-12-11 10:15
新手上路 Posts 1 Credits 2
Good stuff
Floor432 chenall Posted 2008-12-11 14:18
银牌会员 Posts 469 Credits 1,276 From 福建泉州
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?
Floor433 19951001 Posted 2008-12-11 19:24
高级用户 Posts 272 Credits 570 From 北京
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 ]
Floor434 goli2008 Posted 2008-12-12 10:00
中级用户 Posts 97 Credits 252
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 ]
Floor435 yinui Posted 2008-12-12 20:57
新手上路 Posts 1 Credits 2
Looking forward to the next version update. Thanks~~~~~~~
Prev  1 … 26 27 28 29 30 31 32 … 38  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023