I am running multiple for
loops over custom tool that produces array of result.
I need to flatten them into one collection without duplicates.
My first idea was to create array that keys are the items, see below. But this is nightmare to iterate afterwards...:
set apps=
for /d %%s in (".\manifests\*.xml") do (
for /f "tokens=*" %%g in ('xml sel -t -v "\apps\app" %cd%\manifests\%%s') do (
echo Found app - %%g [inside %%s]
rem First idea below:
set apps[%%g]=true
)
)
rem How to iterate apps afterwards?