I'd recommend adding a chdir to the script. BAT files can be annoying when you have to call them from Perl scripts. Also, it may not necessarily be the BAT file in and of itself, but if its calling an executable thats assuming a certain directory, then things get trickier. The whole process is annoying and requires patience to get it working correctly.