CODE: [Copy to clipboard]@echo off wmic LogicalDisk where "DeviceID='R:'" set VolumeName="" echo y|format R: /V: /X