
CODE: [Copy to clipboard]fsutil fsinfo drivetype %cd:~0,2%
CODE: [Copy to clipboard]@echo off
set /p x=输入盘符:
for /f "skip=1" %%i in ('wmic logicaldisk where "deviceid='%x%:'" get Description 2^>nul') do set type=%%i
if not defined type set type=此驱动器不存在!
echo %x%:盘的类型为: %type%
pause>nul
goto :eof
| Quote: | |
|
CODE: [Copy to clipboard]然后针对info.txt进行过滤则可得到分区情况了。start msinfo32 /categories +componentsstoragedrives /report info.txt
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |