Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Here's a doozie

3 views
Skip to first unread message

ros...@my-deja.com

unread,
Apr 28, 2000, 3:00:00 AM4/28/00
to
Alrite guys,

Here's whats going on. I've been working on auto-provisioning NT web
sites for the past few weeks. Currently I have a perl script that
queries a sql database for information on new websites.. it then builds
the directory structure.. yada yada yada... then it calls a vbscript
which is able to access the IIS metabase and create objects and such.

What I would like to do is have a perlscript (activeperl) access the
metabase. But I'm having trouble. It 'seems' that a call to
$obj = $WScript->GetObject ("IIS://LocalHost/w3svc")
does not return anything.

The equivelent call in vbscript is
Set obj = GetObject("IIS://LocalHost/w3svc")
and it works fine.

I'm wondering if I'm trying to fetch the object correctly.. or am I just
referencing it correctly... or is this futile?

Please.. help asap.


Sent via Deja.com http://www.deja.com/
Before you buy.

Tobias Martinsson

unread,
May 4, 2000, 3:00:00 AM5/4/00
to
$WScript is WSH, which you don't define whether you use or not. If not,
see the Win32::OLE module and its methods, such as GetObject() --
http://www.activestate.com/ActivePerl/docs/site/lib/Win32/OLE.html

Tobias


In article <8eam3c$8l9$1...@nnrp1.deja.com>,

--
Tobias

0 new messages