| 
 
lwz642246 
新手上路
 
 
 
  
  
积分 12 
发帖 5 
注册 2008-7-10 
状态 离线
 | 
『楼 主』:
 求助:dos下如何获取磁盘信息
 
使用 LLM 解释/回答一下
  
曾看到过有个一键还原里面显示所有磁盘信息如下:请问如何用批处理,实现如下效果:最好和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 
 
 
还有磁盘格式,是否隐藏等信息 
 
 Last edited by lwz642246 on 2008-10-11 at 21:14 ] 
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 
    
 
  
 |   
 | 
  2008-10-11 21:11 | 
  
 | 
 | 
 
huahua0919 
银牌会员
 
     
 
  
 
积分 1608 
发帖 780 
注册 2007-10-7 
状态 离线
 | 
『第 2 楼』:
 
 
使用 LLM 解释/回答一下
  
如果你搜索一下,你会发现得到的不仅仅是这些 
 
wmic logicaldisk list full /format:hform >1.html&1.html 
  
If you search, you will find that you get more than just these 
 
wmic logicaldisk list full /format:hform >1.html&1.html 
  
    
 
  
 |   
 | 
  2008-10-11 21:22 | 
  
 | 
 | 
 
huahua0919 
银牌会员
 
     
 
  
 
积分 1608 
发帖 780 
注册 2007-10-7 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
DOS下获取磁盘参数我不怎么清楚,我看错了,不过搜索是没错的 
I don't know much about getting disk parameters under DOS. I made a mistake, but the search was correct 
    
 
  
 |   
 | 
  2008-10-11 21:43 | 
  
 | 
 | 
 
lwz642246 
新手上路
 
 
 
  
  
积分 12 
发帖 5 
注册 2008-7-10 
状态 离线
 | 
『第 4 楼』:
 
 
使用 LLM 解释/回答一下
  
谢谢回复 
我已经搜索 
无结果 
Thanks for the reply. 
I have searched. 
No results. 
    
 
  
 |   
 | 
  2008-10-11 23:06 | 
  
 | 
 | 
 
lianjiang2004 
金牌会员
 
      
 
  
  
积分 3946 
发帖 1884 
注册 2006-1-20 
状态 离线
 | 
 | 
  2008-10-12 08:16 | 
  
 | 
 | 
 
lwz642246 
新手上路
 
 
 
  
  
积分 12 
发帖 5 
注册 2008-7-10 
状态 离线
 | 
 | 
  2008-10-12 14:36 | 
  
 | 
 | 
 
DOSforever 
金牌会员
 
      
 
  
  
积分 4639 
发帖 2239 
注册 2005-1-30 
状态 离线
 | 
 | 
  2008-10-12 23:03 | 
  
 | 
 | 
 
lwz642246 
新手上路
 
 
 
  
  
积分 12 
发帖 5 
注册 2008-7-10 
状态 离线
 | 
『第 8 楼』:
 
 
使用 LLM 解释/回答一下
  
ghost -dd得到的信息很多,我只想得到很整齐的磁盘列表,麻烦楼上的大师给我提供一个批处理,谢谢了! 
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! 
    
 
  
 |   
 | 
  2008-10-13 20:55 | 
  
 | 
 | 
 
DOSforever 
金牌会员
 
      
 
  
  
积分 4639 
发帖 2239 
注册 2005-1-30 
状态 离线
 | 
 | 
  2008-10-13 23:20 | 
  
 | 
 | 
 
Climbing 
铂金会员
 
        网络独行侠
  
 
积分 6962 
发帖 2753 
注册 2003-4-16 来自 河北保定 
状态 离线
 | 
『第 10 楼』:
 
 
使用 LLM 解释/回答一下
  
gdisk或者omnifs。 
gdisk or omnifs 
    
 
  
  |  
                  
  
                    偶只喜欢回答那些标题和描述都很清晰的帖子! 
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人! 
 |   
 | 
  2008-10-15 15:55 | 
  
 | 
 | 
 
jh1688 
中级用户
 
   
 
  
  
积分 248 
发帖 126 
注册 2008-5-30 
状态 离线
 | 
『第 11 楼』:
 
 
使用 LLM 解释/回答一下
  
@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  请根据上面显示的硬盘信息确认识别结果。 
echo. 
echo  自动识别结果: 
echo  活动分区是:%actp% 
echo  最后分区是:%lastp% 
echo  最后分区对应的盘符是:%lastd% 
echo  最后分区可用空间是:%lastk%Mb 
echo. 
if exist mini_dd.txt del mini_dd.txt 
goto exit 
 
:fail 
cls 
echo. 
echo  很抱歉,本工具采用的软件未能获得有效硬盘信息。 
echo. 
if exist mini_dd.txt del mini_dd.txt 
:exit 
 
 
文中提到的minito和strings,本论坛就有楼主可以自己搜一下…… 
 
 Last edited by jh1688 on 2008-10-31 at 05:48 ] 
@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 ] 
    
 
  
 |   
 | 
  2008-10-31 05:47 | 
  
 |