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 $!";
In reply to Re^4: Error with GetDRIVE() when using a mapped drive
by Loops
in thread Error with GetDRIVE() when using a mapped drive
by vanz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |