02-24-2013, 06:26 PM
Macro Macro1989
out
str s=
;c:\program files\myexe1.exe
;c:\program files\myexe2.exe
;c:\program files\myexe3.exe
;c:\program files\myexe4.exe
;c:\program files\anotherone.exe
str sw=
;myexe1
;mystuff
;anotherone
;somethingelse
ARRAY(str) am au AM AU
foreach _s sw
,if(findw(s _s)<0) au[]=_s
,else am[]=_s
foreach _s s
,for(_i 0 am.len) if(findw(_s am[_i])>=0) break
,if(_i<am.len) AM[]=_s; else AU[]=_s
out "<><Z 0x80c080>Matched</Z>"
out am
out "<><Z 0x80c080>Unmatched</Z>"
out au
out "<><Z 0xc0c0>Matched</Z>"
out AM
out "<><Z 0xc0c0>Unmatched</Z>"
out AU