
CODE: [Copy to clipboard]@echo off
setlocal&set a=
for /d %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do fsutil fsinfo drivetype %%i:>>1.txt
for /f "tokens=1,2* delims= " %%i in ('findstr /c:"固定" 1.txt') do set a=%%i
echo. 最后一个硬盘分区为 %a%
pause>nul
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |