|I have some env variables like|
As you can see the difference is the number among them. I want to write a batch file and first check if one of these variables exits. I know that this code will do that for one variable
IF "%ANSYS110_DIR%" == "" GOTO NOPATH
@ECHO The PATH environment variable was detected.
@ECHO The PATH environment variable was NOT detected.
However I want to know how can I use wild char?? For example %ANSYS*_DIR% doesn't work.
please share any suggestion on that