批处理判断变量中是否包含字符串


set EXISTS_FLAG=false
echo %JAVA_OPTS%|find "Xdebug">nul&&set EXISTS_FLAG=true
if "%EXISTS_FLAG%"=="true" (
	echo 1
) else (
	echo 2
)


你可能感兴趣的:(java)