That yields the same problem that I was having:
%%A was unexpected at this time.
Hmmmm running on windows XP that works fine, what version of windows are you using?
Additionally is this from a bat file or are you testing on the commandline? On the command line %%A becomes %A.
From checking for / do on commandline requires an NT class OS.