Here's the error: OLE exception from "WSHNetwork.MapNetworkDrive": The network name cannot be found. Win32::OLE(0.1704) error 0x80070043: "The network name cannot be found" in METHOD/PROPERTYGET "MapNetworkDrive"#!/usr/bin/perl use strict; use CGI; use Win32::OLE; my $objNetwork; my $query=new CGI; my $strDrive = 'Z:'; my $strPath = '\\PC116597\print'; $objNetwork = Win32::OLE->CreateObject('WScript.Network'); $objNetwork->MapNetworkDrive($strDrive, $strPath) || print "failed map +ping!\n"; print Win32::OLE->LastError();
In reply to error mapping drive by djbryson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |