in reply to reuse of Win32::OLE object

This isn't a Perl or Win32::OLE problem. What you need to do is look up the DOM for IIS in order to discover what methods are available from the IIS server object you are getting via my $obj=Win32::OLE->GetObject("IIS://$ip").

A quick google turned up this, and a quick browse suggests that you may be able to use something like

$obj->ConnectPath("IIS://LOCALHOST/W3SVC/");

to achieve your goal. You will need to find and read the DOM docs for your version of IIS.

Often, doing a Data::Dumper dump of the object handle returned by Win32::OLE will give some clues as to what properties, methods and collections are available at each level of object.

HTH.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

Replies are listed 'Best First'.
Re: Re: reuse of Win32::OLE object
by Discipulus (Canon) on Jan 27, 2004 at 12:05 UTC
    thanks BrowserUk !
    I knew it was not a perl q. but I have looked til 25th google page with no encounter ConnectPath ..

    kisses lorenzo*