|
本帖最后由 窄口牛 于 2017-7-17 10:25 编辑
- @echo off
- del list.log /q
- dir *-kb*.exe /b /o:n >7.txt
- For %%a in (7.txt) Do Type %%a >a.txt
- del 7.txt /q
- wmic qfe get hotfixid >>8.txt
- For %%a in (8.txt) Do Type %%a >6.txt
- del 8.txt /q
- findstr /i "kb" 6.txt>>1.txt
- del 6.txt
- ::for /f "tokens=2" %%a in ('systeminfo^|findstr /i "kb"') do echo %%a>>1.txt
- for /f "delims=^- tokens=1,*" %%a in (1.txt) do (echo %%a>>2.txt)
- del 1.txt /q
- for /f "delims=^_ tokens=1,*" %%a in (2.txt) do (echo %%a>>b.txt)
- del 2.txt /q
- findstr /V /I /G:b.txt a.txt > c.txt && move /y c.txt list.log
- del *.txt
复制代码
又凑了几句进去前部分没问题了
筛选(findstr /V /I /G:b.txt a.txt > c.txt && move /y c.txt list.log)又失效了
|
|