Jump to content

datas2k

Members
  • Posts

    2
  • Joined

  • Last visited

datas2k's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ah thx im a newb in autoit
  2. Hi! My quaestion is how im count the number of existing services ? $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") $Services = $objWMIService.ExecQuery("SELECT * FROM Win32_Service", "WQL", BitOR(0x10,0x20)) ConsoleWrite ("----------------------" & @LF & UBound($Services) & @LF & "----------------------" & @LF)Im ask that cus after getting the services list, counting with UBound not work, always get a zero value. For example with that loop im can count: For $objItem In $Services $i = $i+1 Next .... but im think it is an ugly method.
×
×
  • Create New...