中国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 02: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,063 / 565
Floor466 19951001 Posted 2009-02-16 20:02
高级用户 Posts 272 Credits 570 From 北京
Originally posted by zhaoliang518 at 2009-2-16 18:52:
The result of dspt 0 /l is as follows

Disk Partitions Cylinders Heads Sectors TotalSectors Mbytes
0 1 1040 16 63 1048576 512

No. Drv Type Volume P ...


The sector numbering starts from 0. According to the above result, the total number of sectors is 1048576, so the sector numbers should be 0..1048575, and the number of the last sector should be 1048575
Floor467 19951001 Posted 2009-02-16 20:06
高级用户 Posts 272 Credits 570 From 北京
Originally posted by tegl at 2009-1-18 19:07:
There is a bug in the latest DSPT amphibious version:
Executing the following command under Windows can normally display all partition information, but it cannot be displayed under DOS
dspt /a /pdr


You check the help information of dspt under DOS. I don't want to always have some boring questions disturbing me
Floor468 19951001 Posted 2009-02-16 20:08
高级用户 Posts 272 Credits 570 From 北京
Originally posted by caozhi256 at 2009-1-10 22:45:
What a good thing!
Just the combination of dsptw 0 /l /getid with For can do many things.
It would be great if we could assign a drive letter to the hidden partition.
I'm a newbie, maybe I'm wrong. Excuse me, sir, how can I assign a drive letter to a hidden partition from the command line?


In a win32 environment, you can use the changetype command to achieve this.
Floor469 19951001 Posted 2009-02-16 20:09
高级用户 Posts 272 Credits 570 From 北京
Originally posted by goli2008 at 2009-1-11 02:12:
Dude, can you update the DSPT for DOS? (Amphibious with W32)

There are two problems with dspt for DOS: Partition 12 is shown as unknow type, so it cannot be unhidden either
In addition, Changetype is not supported.


Please be patient, I will add this function soon.
Floor470 19951001 Posted 2009-02-16 20:11
高级用户 Posts 272 Credits 570 From 北京
Originally posted by gmy at 2009-1-15 13:16:


Does this version be compatible with the version that GGHOST requires to prevent false positives from antivirus software?
Does this version have a time limit?

Because I am going to update to the next version of One - key GHOST.

[ Last edited by gmy on 2009-1-15 at 13:17 ]



1. No time limit
2. Because there are assembly parts in the source code, it needs to be adapted into a C program, and it is not temporarily compatible with the anti - false positive requirements of GGHOST.
Floor471 zhaoliang518 Posted 2009-02-16 20:24
新手上路 Posts 8 Credits 18
Originally posted by 19951001 at 2009-2-16 20:02:

Sector numbering starts from 0. According to the above result, the total number of sectors is 1048576, so the sector numbers should be 0..1048575, and the number of the last sector should be 1048575


Hehe, thank you for the reply! Regarding the number of sectors, I do know it.

The situation is like this: There is a software that writes the KEY into the last sector,
but after restarting the computer, the KEY is gone
I just want to make a batch processing to back up the KEY,
and write back the KEY when restarting.

But I'm not good at it and can't figure it out

The following is my batch processing for backing up the KEY:
dspt 0 0 1 /s 0.dat /y Back up sector 0 to 0.dat
dspt 0 /dpr /y Write the last sector to sector 0
dspt 0 0 1 /s K.dat /y Back up sector 0 to K.dat
dspt 0 0 1 /r 0.dat /y Restore sector 0

It's not that I'm an idiot, I want to make it universal because the number of sectors in each computer is uncertain,
I also don't know how to get the position number of the last sector,
so it's so troublesome,
This requirement is relatively special!
I just want to ask, who has a pure DOS calculator?
For example:
calc 1024-1
Get 1023 is okay

[ Last edited by zhaoliang518 on 2009-2-16 at 21:00 ]
Floor472 lianjiang2004 Posted 2009-02-16 21:38
金牌会员 Posts 1,884 Credits 3,946
strings has arithmetic functions
Floor473 zhaoliang518 Posted 2009-02-16 21:49
新手上路 Posts 8 Credits 18
Find CALC387.zip

http://www.cn-dos.net/forum/attachment.php?aid=3675&checkid=c2100&download=1

[ Last edited by zhaoliang518 on 2009-2-16 at 21:51 ]
Floor474 WLDNA Posted 2009-02-27 06:36
新手上路 Posts 5 Credits 10
I've been using dsptw.exe all the time, and it works well with the program. Thanks a lot, heh.

There are some special operations that require setting the partition as inactive, but currently DSPTW only has the function of activating. I wonder if a function to deactivate can be added? Heh.

Actually, it's just that a friend accidentally found out that when booting from a USB flash drive, it's not necessary to activate the partition. Activation actually causes a series of problems. But HP's formatting tool sets it as active by default, so I want to use dsptw to achieve this function. If it can be added, I'll be very grateful, heh.
Floor475 penginfo Posted 2009-03-02 23:56
新手上路 Posts 2 Credits 4
Thanks for the update, I'll download and test it.
Floor476 gmy Posted 2009-03-07 22:07
版主 Posts 392 Credits 1,113
Does DISKRW support 640G hard drives?

http://doshome.net/bbs/dispbbs.asp?boardid=4&id=4713
Floor477 19951001 Posted 2009-03-07 22:12
高级用户 Posts 272 Credits 570 From 北京
Originally posted by gmy at 2009-3-7 22:07:
Does DISKRW support 640G hard drives?

http://doshome.net/bbs/dispbbs.asp?boardid=4&id=4713


It can support up to 2T (2048G) hard drives
Floor478 dosos Posted 2009-03-08 00:40
新手上路 Posts 6 Credits 9
Very good tool. Thanks.
Floor479 tyywzf Posted 2009-03-12 02:37
新手上路 Posts 1 Credits 2
Thanks to the LZ for sharing, I've been using it all the time. I'm coming to support the LZ today, heh heh
Floor480 zjimmy Posted 2009-03-13 05:38
新手上路 Posts 6 Credits 8
Prev  1 … 29 30 31 32 33 34 35 … 38  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023