Re: Virtual Server and C#
- From: "Jim Vierra" <jvierra@xxxxxxx>
- Date: Sun, 8 May 2005 17:21:54 -0400
Yes but you will have to use C# classes and methods or use late binding.
You can execute the script engine ActiveX object from inside of a C# exe but
it seems a little silly.
Look into the System.Management classes in NET 1.1 to see if it has what you
need. You can also use ADO and LDAP or the ADSI providers from C#.
This is a scripting forum. You could be asking the CS forum for help with
this.
For help with WMU and ADSI see those forum.
Yes you can create a COM object in C# that can be called from VBS and JS.
See the WSH documentation in the Platform SDK for examples of using C# to
build objects callable from scripting languages.
See ScriptingAnswers.com for a good C# example with source code by Don Jones
the owner of the web site.
--
Jim Vierra
"P.o.l" <YOU_CAN_CUTp.o.l@xxxxxxxx> wrote in message
news:OardG3$UFHA.3244@xxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I must write an application for Virtual Server,
> and I thought to write it in C #,
> but I see examples of code in Visual Basic only.
> Example, I can write same thing using c # ??
>
> Set objVS = CreateObject("VirtualServer.Application")
> Wscript.Echo "Capacity: " & objVS.AvailableSystemCapacity
>
> thanks
> P.o.l
>
>
.
- Follow-Ups:
- Re: Virtual Server and C#
- From: Rajkumar
- Re: Virtual Server and C#
- References:
- Virtual Server and C#
- From: P.o.l
- Virtual Server and C#
- Prev by Date: Re: Safe Mode detection
- Next by Date: Re: Safe Mode detection
- Previous by thread: Virtual Server and C#
- Next by thread: Re: Virtual Server and C#
- Index(es):
Relevant Pages
|