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.

10 lines
399 B

  1. ' The following sample retrieves the associators of an instance
  2. ' of the class Win32_LogicalDisk that are associated via the class
  3. ' Win32_LogicalDiskToPartition
  4. Set objServices = GetObject("cim:root/cimv2")
  5. Set objEnum = objServices.AssociatorsOf _
  6. ("Win32_LogicalDisk=""C:""", "Win32_LogicalDiskToPartition")
  7. for each Instance in objEnum
  8. WScript.Echo Instance.Path_.DisplayName
  9. next