Batch isn't the way for this. You will want to do some simple scripts that can do this. VBS and perl are both pretty simple, and capable for this. VBS is built into windows, if that is what your on. There are some others if your in Linux or Unix.
If you find some miiny programs, then you can use batch to automate that, but it's not really a good way to do it. Not a lot of functionality in batch.
Give some info on your environment, and I'll see what I can come up with...