Home All Groups Group Topic Archive Search About


Author
8 May 2005 6:43 PM
P.o.l
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

Author
8 May 2005 9:21 PM
Jim Vierra
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

Show quote
"P.o.l" <YOU_CAN_CUTp.***@tele2.it> wrote in message
news:OardG3$UFHA.3244@TK2MSFTNGP15.phx.gbl...
> 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
>
>
Author
24 May 2005 10:23 AM
Rajkumar
Hi Mr.Jim Vierra,
Can u give link for CS Forum.
and P.O.L
I'm also looking for C# code example for Virtual Server,
If u found any souce please let me know, u can contact me thru
st_rajku***@yahoo.co.in,
Thanks,
Rajkumar.

Show quote
"Jim Vierra" wrote:

> 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.***@tele2.it> wrote in message
> news:OardG3$UFHA.3244@TK2MSFTNGP15.phx.gbl...
> > 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
> >
> >
>
>
>

AddThis Social Bookmark Button