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

  1. on error resume next
  2. set n = getobject ("winmgmts://alanbos2/root/snmp/test")
  3. set routingtable = n.instancesof ("SNMP_RFC1213_MIB_ipRouteTable")
  4. for each route in routingtable
  5. WScript.Echo route.path_.relpath
  6. result = route.Fred ()
  7. if err <> 0 then
  8. WScript.Echo Hex(Err.Number), Err.Description, Err.Source
  9. Err.Clear
  10. end if
  11. next