Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Find device letter

by wind (Priest)
on Mar 21, 2014 at 01:02 UTC ( #1079150=note: print w/replies, xml ) Need Help??


in reply to Find device letter

Can also work off the list of available drives: (tye)Re: List of Mounted Drives on Win32
use strict; use Win32API::File qw(getLogicalDrives GetVolumeInformation ); my @drives = getLogicalDrives(); for my $d (@drives) { my @x = (undef)x7; GetVolumeInformation( $d, @x ); print "$d $x[0] ($x[5])\n"; }
- Miller

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079150]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2022-11-29 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?