How to find a particular word in a string in c++

  • Thread starter Thread starter Learner177
  • Start date Start date
L

Learner177

Guest
i have this command from which may or may not return more then one antivirus names

WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List

now this returns

displayName=Windows Defender

but in case there are multiple antivirus it shows like this

displayName=Windows Defender

displayName=Bitdefender Antivirus

now what should i do to store both these names in a one string with comma separating them or in array with index 0=Windows Defender and index 1=Bitdefender Antivirus

?

Continue reading...
 
Back
Top