Thanks for an incredibly quick reply - on a Sunday too! Impressive.
Thought I'd searched the other threads but obviously made a pig's ear of it - sorry.
I use McAfee - not AVG or ESET - on Windows 8.0 but I guess the cause is the same.
Interestingly (perhaps) I have different 'compilations' (full version, beta version, evaluation version) with the same script which behaves slightly differently according to the value of a compiler variable, and the problem doesn't occur for all of them. So I guess the problem is some combination of bytes in the file it's creating.
But now I have to figure out a way round it.
Dave
David Webber
Mozart Music Software