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.

13 lines
273 B

  1. on error resume next
  2. set path = CreateObject("WbemScripting.SWbemObjectPath")
  3. WScript.Echo
  4. set disk = GetObject("winmgmts:win32_logicaldisk='C:'")
  5. set path = disk.Path_
  6. WScript.Echo path.Path
  7. WScript.Echo path.Namespace
  8. WScript.Echo path.ParentNamespace