in reply to create and run

Hi Cockneyphil,

Could you not use something like File::Copy within your code to do your file copying rather than creating then running a batch file? You may want to look at perldoc system.

Martin