Minecraft commands aren't working for me

I'm trying to get rid of all the bats in my Minecraft world, but the command/kill @e[type=Bat] isn't working.


If the commands aren't working and you are sure that it is correct (The one on your question is correct), then either you have cheats disabled, you aren't op (only if you're on servers), or using an old version. The "@e" target selector was added in Minecraft 1.8.0.