http://www.perlmonks.org?node_id=190243


in reply to How to get a List of drives on window

Two modules spring to mind. Win32::DriveInfo is one, and Dave Roth's Win32::AdminMisc is the other. Both modules have functions that will return a list of drives: DrivesInUse() in the former, and Win32::AdminMisc::GetDrives() in the latter.

"One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison