Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
411 B

  1. // This illustrates the handling of property array values
  2. // using the VBArray helper
  3. var locator = WScript.CreateObject ("WbemScripting.SWbemLocator");
  4. var services = locator.ConnectServer (".", "root/cimv2");
  5. var Class = services.Get ("Win32_logicaldisk");
  6. var values = new VBArray (Class.Derivation_).toArray ();
  7. for (var i = 0; i < values.length; i++)
  8. WScript.Echo (values[i]);