http://qs321.pair.com?node_id=1106060


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

Yes, you completely dropped the creation of the OLE filesystem object, thus $fs is left undefined. And you dropped the error message from the die statement.

my $fs = Win32::OLE->CreateObject('Scripting.FileSystemObject'); my $d = $fs->GetDrive('Y:') or die "GetDrive failed $!";