CODE: [Copy to clipboard]@echo off wmic LogicalDisk where "DeviceID='D:'" set VolumeName="" echo y|format D: /v: /x