But batch files are a silly things, do everything in Perl, you'll be happier!
Se also:
In reply to Re: Batch FIle Operations by Discipulus in thread Batch FIle Operations by ankit.tayal560