![]() |
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-08-19 13:16 |
47,814 topics / 349,908 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » Help: How to obtain disk information under DOS |
| Printable Version 1,582 / 10 |
| Floor1 lwz642246 | Posted 2008-10-11 21:11 |
| 新手上路 Posts 5 Credits 12 | |
|
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 |
|
| Floor2 huahua0919 | Posted 2008-10-11 21:22 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
If you search, you will find that you get more than just these
|
|
| Floor3 huahua0919 | Posted 2008-10-11 21:43 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
I don't know much about getting disk parameters under DOS. I made a mistake, but the search was correct
|
|
| Floor4 lwz642246 | Posted 2008-10-11 23:06 |
| 新手上路 Posts 5 Credits 12 | |
|
Thanks for the reply.
I have searched. No results. |
|
| Floor5 lianjiang2004 | Posted 2008-10-12 08:16 |
| 金牌会员 Posts 1,884 Credits 3,946 | |
|
Just take a look at the processing ideas in this one-click [button], heh heh.
|
|
| Floor6 lwz642246 | Posted 2008-10-12 14:36 |
| 新手上路 Posts 5 Credits 12 | |
|
Why is there no one answering?
|
|
| Floor7 DOSforever | Posted 2008-10-12 23:03 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
You're already aware of the answer, right: ghost - DD
|
|
| Floor8 lwz642246 | Posted 2008-10-13 20:55 |
| 新手上路 Posts 5 Credits 12 | |
|
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!
|
|
| Floor9 DOSforever | Posted 2008-10-13 23:20 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
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? |
|
| Floor10 Climbing | Posted 2008-10-15 15:55 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
gdisk or omnifs
|
|
| Floor11 jh1688 | Posted 2008-10-31 05:47 |
| 中级用户 Posts 126 Credits 248 | |
|
@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 ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |