@echo off
cd.>script.txt
>>script.txt echo list disk
for /f %%i in ('diskpart /s script.txt^|find /c ^"联机^"') do Set HardDrivers=%%i
del script.txt /q
echo 您的计算机上硬盘安装数量为:%HardDrivers%
pause
您可能感兴趣的文章:
本文由 华域联盟 原创撰写:华域联盟 » 取得硬盘数.bat
转载请保留出处和原文链接:https://www.cnhackhy.com/15506.htm