精简以下代码:Memorymodel wmic memorychip findstr i Kingston A-data CT32G CT16G CT8G D23 D22 vick samsung 3G2R1 04cb if errorlevel neq 0 goto MemorymodelFail wmic memorychip findstr i 8589934592 1717986
set "search_terms=Kingston A-data CT32G CT16G CT8G D23 D22 vick samsung 3G2R1 04cb" for %%i in (%search_terms%) do ( wmic memorychip | findstr /i "%%i" | find /C "DIMM" | find /i "2" if %errorlevel% equ 0 goto Skip ) goto MemorymodelFail
:Skip
原文地址: https://www.cveoy.top/t/topic/iQ1Q 著作权归作者所有。请勿转载和采集!