|
差不多可以用了,呵呵。。。
@ECHO OFF
FOR /F "TOKENS=1 DELIMS= " %%I IN ('GDISK32.EXE /STATUS') DO (SET DISKNUMBER=%%I)
@ECHO 当前一共有:%DISKNUMBER% 个硬盘 && ECHO.
FOR /F "TOKENS=1,8 DELIMS= " %%I IN ('GDISK32.EXE /RAW') DO (IF /I "%%J"=="MBR" ECHO 硬盘:%%I 主引导记录类型为:%%J)
FOR /L %%D IN (1,1,%DISKNUMBER%) DO (FOR /F "TOKENS=1,3,7 DELIMS= " %%I IN ('GDISK32.EXE %%D /STATUS') DO (IF /I "%%J"=="A" ECHO 硬盘:%%D 激活主分区盘符为:%%I 系统文件格式为:%%K && @ECHO.))
FOR /L %%I IN (1,1,%DISKNUMBER%) DO (GDISK32.EXE %%I /STATUS && @ECHO.)
@PAUSE |
|