I guess Batman must have special New York City (Gotham City) weapon privileges because he is a celebrity.
Lots More pictures of Batman with various guns over at Silver Age Comics
Also If you haven’t seen The Dark Knight by now.. you’re slackin. Buy it HERE for Cheap