in reply to Re: error mapping drive ('\\')
in thread error mapping drive

funny, i tried \\\\PC116597\\print already and it didn't work, but it works now. I must have had something else wrong. I figured the single quotes would handle it. You're right, i should have outputted the path var. Well, it's successfully mapping the drive, but for some reason my error still comes true. This line:
$objNetwork->MapNetworkDrive($strDrive, $strPath) || print "failed ma +pping $strPath\n";
It still prints failed even though it worked... hmmm Thanks for your help!

Replies are listed 'Best First'.
Re^3: error mapping drive (callee implies void context)
by pKai (Priest) on Jan 11, 2007 at 23:03 UTC
    It still prints failed even though it worked

    WSH-methods which don't return some other "object", more often then not return nothing at all. So you can't check for a success/failure return value as in $obj->method() || die; with those methods.

    From your observation this seems to be the case here, too.

      That's what i thought. Thanks for your help monks!