Del list. log/Q
ECHO is detecting installed Patches
For/F " Delims =-tokens = 2 " % I in ('dir *-kb *. EXE/B/on') Do Reg Query " HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Hotfix \ % I " > NUL | DIR/B * % I *. EXE> list. log & CLS & Echo is detecting installed Patches
For/F " EOL = o eol = o " % J in (list. Log) Do ECHO is installing patch % J & % J/quiet/norestart
Patch installed by ECHO (list. Log): & type list. log | more
Save the file as setup. BAT and run it.