Yes maam; I finally found the documentation that I was looking for. I am new to this OLE object but the more I am reading about it the more doors and project solutions it seems to open. This is good.
I was able to get it to work after reading that document and a couple more thoroughly. I found out that I don't really like deadlines, but it keeps me on my toes... Thanks again Guys, Dan -----Original Message----- From: Jan Dubois [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:25 PM To: Daniel Rychlik; [email protected] Subject: RE: Win32-OLE Network On Tue, 18 Apr 2006, Daniel Rychlik wrote: > 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","pa ssword"); You are missing the 3rd argument, which is a Boolean indicating if you want to store the mapping and credentials in the user profile. Try this: $objnet->MapNetworkDrive("z:",\\10.103.105.50\\root",0,"administrator"," password"); > Print Win32::OLE->LastError(); > > Type Mismatch error... > > I cant find any solid documentation on this joker. Anyone have any > good documentation? Have you tried Google? There seem to be plenty of references. The canonical documentation for MapNetworkDrive() should be this (beware of line wrapping): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script5 6/html/fef5a591-c633-4c18-91a3-848e72a36ca7.asp Cheers, -Jan _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
