for me it was unexpected, that wildcards are expanded, if the content is in %1..%9 or even in a FOR meta variable.
Code: Select all
@echo off
echo %%1=%1 - no wildcard expansion
echo %%~1=%~1 - no wildcard expansion
echo %%~n1=%~n1 - wildcard expansion
echo %%~f1=%~f1 - wildcard expansion