Relative Content

Tag Archive for batch-file

Is there any way to match exactly one character?

I have a directory containing the files file.txt, file1.txt, and file2.txt. I’m trying to write a batch file that processes the last two only. However, when I say for %%f in (file*.txt), it matches all 3. Same for file?.txt, which is a bit surprising given that a ? wildcard is specifically supposed to represent a single character.