I´m stuck with my batch file. I try to query multiple computers if they have usb or ps2 keyboard attached. So far i´ve got this:
for %%i in (%%SS_list%%) do c:\MASTER\SSDB\vcom\porta\devcon -m:\\%%i listclass Keyboard | find "0B01"
IF NOT ERRORLEVEL 1 GOTO NEWAGE
echo %i PS2!
echo %i USB!
%complist% contain list of computers. Query part work fine but i cannot get the answer part right...
I wish to get answer like this:
computer3 PS2! etc.
This is third day that i try to figure this out but cant get nowhere with it. Any suggestion what i do wrong?