Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by soonix (Canon)
on Nov 04, 2014 at 20:12 UTC ( [id://1106102]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Error with GetDRIVE() when using a mapped drive
in thread Error with GetDRIVE() when using a mapped drive

Weird... What is that Y: drive, then? A mapped network share? Can you see its properties the "normal" way?

Is it in the Drives collection? - i.e. would my code snippet try to list it?

Replies are listed 'Best First'.
Re^6: Error with GetDRIVE() when using a mapped drive
by vanz (Initiate) on Nov 04, 2014 at 21:45 UTC

    Y drive is a network drive. Here are the results of the snippet

    DriveLetter: Y DriveType: 3 IsReady: 1 FileSystem: NTFS TotalSize: 2594847440896 Use of uninitialized value in concatenation (.) or string at E:\APPL\O +EM\checkdr ive.pl line 14. FreeSpac: Use of uninitialized value in concatenation (.) or string at E:\APPL\O +EM\checkdr ive.pl line 14.
      Hmmm... that's 2.5 TB - works here with 8 TB ... That raises the following questions:
      • do the numbers look correct, if you execute in a command line shell
        wmic logicaldisk where DeviceID="Y:"
      • are you using a 64bit or 32bit Perl?
        (Although that shouldn't matter, works here with 5.14.2 i386 and 5.18.2 x64)
      • Versions of Perl, Win32::OLE, Windows (also, 64 or 32 bit Windows)?

        -This is perl, v5.10.0 built for MSWin32-x64-multi-thread - The numbers look correct when I run the script in the cmd.exe -Windows 64-bit

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found