The original above script does not apply to Windows 7 instead use this to pipe the info using DiskPart
Code:
@echo off
echo.list vol | DiskPart | find /i "partition"
echo.list vol | DiskPart | find /i "DVD-ROM"
echo.list vol | DiskPart | find /i "Removable"