@echo offset "变量1=abcdefghijklmnopq"set 返回代码=echo %变量1%|findstr /c:"abc">nul 2>nul&&set 返回代码=true||set 返回代码=false
@echo off & SET 变量1="ABCDEFG"echo %变量1%|find /i "CD">nul 2>nul&&echo TURE||echo FALSEpause>nul