Ah, good point. I merely tested it immediately at the CMD prompt. It's documented within XP's "HELP for" as:

To use the FOR command in a batch program, specify %%variable instead of %variable.