I could be wrong, but isn't the syntax for variables in batch scripts %var%, ie a percent on either side?