nicolaj,

Give this a shot..

After the line with -

Del $ASOLogDir + $SourceFile

Add a SLEEP statement..

Del $ASOLogDir + $SourceFile
SLEEP 1

Even a second gives this a chance to complete before continuing..

You may need to go up to 5 seconds for such a large file.

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's