• Tommy -

    I've also tried your solution but I'm getting the red x in the script task.

    The task is configured to pre-compile the script, but binary code is not found. Please visit the IDE in Script Task Editor by clicking Design Script button to cause binary code to be generated.

    I copied your code and put in my file name and file path but I get that error, any ideas on the cause?

    Thanks