OK, time to come out of the lurking closet. (first post) Try it with only 1 %. The error is exactly the same as the one you get when you try it on CMD line in XP. After some googling, I found that %%i is to be used in a batch and only one % via CMD line. To test the batch itself, just rem the cmdow and put some pauses and echos in to see which parts run and which don't.