> Procedure WriteToLog > LParameter tcText > =StrToFile(Ttoc(DateTime(),3)+" "+tcText+DC_CRLF,GetStartIn()+"dCFusionTasks.log",1) > Return > EndProc >Try to log in as the account used for the scheduled task and run it manually, or to create a copy of the task to run under your account and run it as scheduled. See if that changes anything when you run it that way. Scheduled tasks run in their own environment, defined by the account - they use the account's folders, private settings, rights etc etc.