I am not sure exactly what you mean. Are you looking to execute these batch files from within a Perl script, or replace these batch files with a Perl script that does the same thing? I think that you are going to have to be a little more specific. Have a look at How do I post a question effectively? and PerlMonks FAQ.