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-07-02 21:35
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Help: How to obtain disk information under DOS View 1,524 Replies 10
Original Poster Posted 2008-10-11 21:11 ·  中国 宁夏 银川 电信
新手上路
Credits 12
Posts 5
Joined 2008-07-10 08:23
17-year member
UID 121308
Gender Male
Status Offline
I have seen that there is a one - key restore that shows all disk information as follows: How to use batch processing to achieve the following effect: It is best to be consistent with the disk information obtained by ghost - DD
No. Drive Active VolumeLabe Total (Mb) Free (Mb)
1:1 C: A WINXP 8001 4266
1:2 D: program 6000 197
1:3 E: data 98241 14470
1:4 F: pe 4996 1270
2:1 H: A 我的U盘 1864 260

Also, information such as disk format and whether it is hidden
Floor 2 Posted 2008-10-11 21:22 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
If you search, you will find that you get more than just these

wmic logicaldisk list full /format:hform >1.html&1.html
Floor 3 Posted 2008-10-11 21:43 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
I don't know much about getting disk parameters under DOS. I made a mistake, but the search was correct
Floor 4 Posted 2008-10-11 23:06 ·  中国 宁夏 固原 电信
新手上路
Credits 12
Posts 5
Joined 2008-07-10 08:23
17-year member
UID 121308
Gender Male
Status Offline
Thanks for the reply.
I have searched.
No results.
Floor 5 Posted 2008-10-12 08:16 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Just take a look at the processing ideas in this one-click [button], heh heh.
Windows 一键还原
http://www.yjhy.com
Floor 6 Posted 2008-10-12 14:36 ·  中国 宁夏 银川 电信
新手上路
Credits 12
Posts 5
Joined 2008-07-10 08:23
17-year member
UID 121308
Gender Male
Status Offline
Why is there no one answering?
Floor 7 Posted 2008-10-12 23:03 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
You're already aware of the answer, right: ghost - DD
Floor 8 Posted 2008-10-13 20:55 ·  中国 宁夏 固原 电信
新手上路
Credits 12
Posts 5
Joined 2008-07-10 08:23
17-year member
UID 121308
Gender Male
Status Offline
The information obtained by ghost -dd is a lot. I just want to get a neat disk list. Please, the master upstairs provide me with a batch script, thanks!
Floor 9 Posted 2008-10-13 23:20 ·  中国 上海 杨浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
You're being too polite. How dare I call myself a master? We're all here to learn from each other.

Or you can try GDISK?
Floor 10 Posted 2008-10-15 15:55 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
gdisk or omnifs
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 11 Posted 2008-10-31 05:47 ·  中国 上海 杨浦区 电信
中级用户
★★
Credits 248
Posts 126
Joined 2008-05-30 17:18
18-year member
UID 120118
Gender Male
Status Offline
@echo off
:mini_BEGIN
if exist mini_dd.txt del mini_dd.txt
minito /nohp /p /ifs>mini_dd.txt
strings lines=LINESIZE mini_dd.txt
if %lines%#==0# goto fail
strings lines=add %lines%,1
set line=1
echo 硬盘信息:
:mini
strings line=add %line%,1
if %line%#==%lines%# goto mini_1
strings lined=read mini_dd.txt,%line%
strings row1=left %lined%,3
strings row3=mid %lined%,8,2
strings row5=mid %lined%,19,3
strings row7=right %lined%,7
if %row5%#==YES# set actp=%row1%
set lastp=%row1%
set lastd=%row3%
set lastk=%row7%
if not %lined%#==# echo %lined%
goto mini

:mini_1
echo.
echo Please confirm the recognition result according to the hard disk information displayed above.
echo.
echo Automatic recognition result:
echo Active partition is: %actp%
echo Last partition is: %lastp%
echo The drive letter corresponding to the last partition is: %lastd%
echo The available space of the last partition is: %lastk%Mb
echo.
if exist mini_dd.txt del mini_dd.txt
goto exit

:fail
cls
echo.
echo I'm sorry, the software used by this tool failed to obtain valid hard disk information.
echo.
if exist mini_dd.txt del mini_dd.txt
:exit


The text mentions minito and strings, and the forum owner can search for them by themselves...

[ Last edited by jh1688 on 2008-10-31 at 05:48 ]
Forum Jump: