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 07:32
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29) View 112,576 Replies 565
Floor 466 Posted 2009-02-16 20:02 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
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
Floor 467 Posted 2009-02-16 20:06 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
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
Floor 468 Posted 2009-02-16 20:08 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
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.
Floor 469 Posted 2009-02-16 20:09 ·  中国 北京 电信
高级用户
★★
流落街头
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 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.
Floor 470 Posted 2009-02-16 20:11 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
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.
Floor 471 Posted 2009-02-16 20:24 ·  中国 辽宁 大连 联通
新手上路
Credits 18
Posts 8
Joined 2009-02-10 02:08
17-year member
UID 138456
Gender Male
Status Offline
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 ]
Floor 472 Posted 2009-02-16 21:38 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
strings has arithmetic functions
Windows 一键还原
http://www.yjhy.com
Floor 473 Posted 2009-02-16 21:49 ·  中国 辽宁 大连 联通
新手上路
Credits 18
Posts 8
Joined 2009-02-10 02:08
17-year member
UID 138456
Gender Male
Status Offline
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 ]
Floor 474 Posted 2009-02-27 06:36 ·  中国 河南 新乡 联通
新手上路
Credits 10
Posts 5
Joined 2007-04-14 09:44
19-year member
UID 85121
Gender Male
Status Offline
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.
Floor 475 Posted 2009-03-02 23:56 ·  中国 广东 深圳 润迅通信集团有限公司
新手上路
Credits 4
Posts 2
Joined 2006-11-05 01:37
19-year member
UID 69613
Gender Male
Status Offline
Thanks for the update, I'll download and test it.
Floor 476 Posted 2009-03-07 22:07 ·  中国 山东 青岛 阿里云
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
Does DISKRW support 640G hard drives?

http://doshome.net/bbs/dispbbs.asp?boardid=4&id=4713
DOS之家 http://doshome.com 站长 葛明阳
Floor 477 Posted 2009-03-07 22:12 ·  中国 北京 电信
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
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
Floor 478 Posted 2009-03-08 00:40 ·  中国 浙江 嘉兴 电信
新手上路
Credits 9
Posts 6
Joined 2008-09-24 17:11
17-year member
UID 126511
Gender Male
Status Offline
Very good tool. Thanks.
Floor 479 Posted 2009-03-12 02:37 ·  中国 陕西 西安 电信
新手上路
Credits 2
Posts 1
Joined 2009-02-10 01:15
17-year member
UID 138453
Gender Male
Status Offline
Thanks to the LZ for sharing, I've been using it all the time. I'm coming to support the LZ today, heh heh
Floor 480 Posted 2009-03-13 05:38 ·  中国 广东 广州 电信
新手上路
Credits 8
Posts 6
Joined 2008-02-26 19:57
18-year member
UID 111497
Gender Male
Status Offline
‹ Prev 1 30 31 32 33 34 38 Next ›
Forum Jump: