Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Error with GetDRIVE() when using a mapped drive

by perlron (Pilgrim)
on Nov 03, 2014 at 15:30 UTC ( [id://1105916]=note: print w/replies, xml ) Need Help??


in reply to Error with GetDRIVE() when using a mapped drive

Hi
The code is working fine on my windows 7 virtual box. I have mapped a drive to E:// and it gives me numeric output.
For the error case, I ran your code in debug mode (perl -d program.pl) and see from line 9 onwards the output of $fs->GetDrive('Y:'); is undef.
This changes if you update the value to C:, as you pointed.
update Is the drive you are trying to map a folder on the same machine(i used a folder on my machine so no permission / network access /privilege issues), or a network drive. If its a network drive, you might need to recheck the documentation if the invocation is right.

The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-03-29 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found