I\'ve been struggling to get a specific output using WMIC in batch in order to build an automatic uninstall script. The issue I\'m running across is that the uninstaller for
EDIT.Turns out that % is needed to be used as wildcard
@echo off
for /f "skip=1 delims==" %%a in (
'wmic product where "Name like '%%product-name%%'" get name /format:table'
) do (
for /f "tokens=* delims=" %%# in ("%%a") do set PROD=%%a
)
echo %PROD%