Code: Select all
FOR %%a IN ("this" "and*" "that" "and??" "tother") DO ECHO %%a
unfortunately only three words were echoed
the wild cards "and*" and "and??" were not processed.
I tried without quotes, and with both slants of single quotes.
Is this a lost cause ?
At the moment I am using these 7 lines of code + 2 lines emphasizing continuity breaks.
Code: Select all
CALL :DoEach "this" "and*" "that" "and??" "tother"
GOTO SKIP
:DoEach
ECHO %1
SHIFT & IF "%2" NEQ "" GOTO NEEDIT
EXIT /B
:SKIP
N.B. The end result is actually not to echo the word,
but to execute much more complicated code I prefer not to explain in detail,
involving the use of and report on the presence or absence of executable's which may include a 64 suffix to denote 64 bit code,
Regards
Alan