I'm testing this code:
set THINGS=a.dll b.dll c-*-a.dll d-*-a.dll e.dll
setlocal EnableExtensions EnableDelayedExpansion
for %%a in (%THINGS%) do (
I would like it to display
(I do need to use those wildcards, but later on.) Instead I see this:
If there are files in the current directory (which in this case is completely irrelevant) matching c-*-a.dll and d-*-a.dll, then those files names are displayed, otherwise I get nothing for those two. However, this is not what I want at all.
Is there any way to get this to work as I described and escape the wildcards one way or another? It seems to be one of the numerous design flaws in the batch scripting language. Is it possible to overcome it? I tried escaping the wildcards: ^*. I also tried other approaches, none seem to work.
I would really appreciate your help!