Try Win32::DriveInfo. The DrivesInUse routine returns an array of all drive-letters in use.
Update: I ran this little test on my system
Output:use strict; use warnings; use Win32::DriveInfo; my @drives = Win32::DriveInfo::DrivesInUse(); print join( "\n", @drives );
A C D
In reply to Re: how to identify the windows drives
by bobf
in thread how to identify the windows drives
by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |