You will need more than an MS-DOS batch file for that. You will need a scripting language like Perl or PHP.
Thanks PhilFrisbie, could you provide more information on that. If possible, could you create the script for me, it's urgent for out team to done this work in short time. Very appreciate.