This is a great post about the trickery you can do in DOS batch files.