Dear Kira,

The real problem in the first version were the lines

code:

COPY $source_file_a $backupdir /H ; - make a backup from original -
COPY $dest_file_a $location /H ; - copy the new file -


It were using the old variable names. Yet, it should like you will expected.
Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA