As far as learning batch files, this is a good site for the basics
http://www.computerhope.com/batch.htm from there just google what you're trying to do and there's uasually some good examples.
For scripting, it depends on what you want to script. For webserver stuff, I would recommend PHP or Python. For OS scripting, look into VBScript, or a cool one I found a while back is AutoIT.