Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to get Folder name by using Drive value?

by EdwardG (Vicar)
on May 17, 2006 at 09:46 UTC ( #549979=note: print w/ replies, xml ) Need Help??


in reply to How to get Folder name by using Drive value?

my $unc=`net use | grep "K:" | grep -Po "\\\\.+"`;

Or use Win32::API and WNetGetUniversalName().

See also UNC.

 


Comment on Re: How to get Folder name by using Drive value?
Download Code
Re^2: How to get Folder name by using Drive value?
by cognizant (Pilgrim) on May 17, 2006 at 10:26 UTC
    Thank you Edward

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-06 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls