I have a batch file which is not working properly. What I am trying to do is to get Published name for the printer drivers by using pnputil -e command in windows 7.
I get : "no pattern match" at all the time.
for /f "tokens=1,2* delims=:" %%a in ('pnputil -e') do (
if %%a equ "Published name " (
) else (
if %%a equ "Class " (
if !test! equ Printers goto :setglob
echo "no pattern match"
set x=%x: =%
Any thoughts, Thanks.