Re: Virtual Server and C#

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
>
>


.



Relevant Pages

  • Re: Virtual Server and C#
    ... I'm also looking for C# code example for Virtual Server, ... You can also use ADO and LDAP or the ADSI providers from C#. ... > This is a scripting forum. ... > build objects callable from scripting languages. ...
    (microsoft.public.windows.server.scripting)
  • Re: User Account Info
    ... do it from within an access database and store the results for reporting ... more then repost if I don't find anything. ... This is a MS Access DB forum not a scripting forum. ...
    (microsoft.public.access.modulesdaovba)
  • Re: SP2 Error 80072EFD
    ... > tried all the fixes and tweaks on this forum without success. ... > Is SP2 doing something different than other updates? ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windowsupdate)
  • Export users emails into a list
    ... I saw the relate post on the forum last week (scripting) ... and somehow it disappear. ... Johnny Chow ...
    (microsoft.public.exchange.admin)
  • Re: Code beautifiers, anyone?
    ... thing IMHO is to learn some scripting language with good regular ... For example Tcl, Python or Perl. ... with all sorts of source code and I have noticed that - for me - the ...
    (freebsd-questions)