Oh, I had just run that at the command line. I'm pretty sure if you are going to run it in a batch file, you have to double up on the percent signs (%%a for example).