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

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.

Replies are listed 'Best First'.
Re^4: error mapping drive (RESOLVED)
by djbryson (Beadle) on Jan 12, 2007 at 14:18 UTC
    That's what i thought. Thanks for your help monks!