@echo off setlocal echo === Physical disks === echo. wmic diskdrive get Model,InterfaceType,Size,Partitions,Status /format:table echo. echo === Partitions === echo. wmic partition get DiskIndex,Index,Size,Type /format:table exit /b 0