Nevermind on this question, I was able to find the documentation...  It was 
elusive...  :)

It works now.

-----Original Message-----
From: Daniel Rychlik 
Sent: Tuesday, April 18, 2006 12:28 PM
To: Daniel Rychlik; [email protected]
Subject: RE: Win32-OLE Network

Ive been playing with the Win32::OLE module and this is what I have come up 
with.

Use win32::OLE;

My $objnet=Win32::OLE->CreatObject("Wscript.Network");

$objnet->MapNetworkDrive("z:",\\10.103.105.50\\root","administrator","password");

Print Win32::OLE->LastError();

Type Mismatch error...

I cant find any solid documentation on this joker.  Anyone have any good 
documentation?

-Dan

________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Rychlik
Sent: Tuesday, April 18, 2006 10:35 AM
To: [email protected]
Subject: Win32-OLE Network

Hello,

I found a "Wscript.Network" ole object and found some sample code on how to map 
a network drive however, There isn't any properties that I have found to use a 
username and password.  I tried searching for just the Network object on google 
and found nothing but other sample VB scripts that don't have credentials in 
properties.  

Will someone point me in the right place?

Thanks in advance,
Dan

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to