I just assumed you were using Windows. If you're using *nix, you can just write a script.
But yeah, Windows/DOS batch files are basically the same as *nix shell scripts, only a little less powerful.
Info on ebook-convert and its options on the calibre site here:
http://calibre-ebook.com/user_manual...k-convert.html