Shane,

FANTASTIC!!!

Quote:


Task will be scheduled on comp1 on 2004/01/07 at 23:58
Error 0 - The operation completed successfully.

Task will be scheduled on comp2 on 2004/01/08 at 00:28
Error 0 - The operation completed successfully.





I replaced the Select..Endselect Jens added to Scheduletask() with your code . deleted $d and changed $d in $date in other parts of the code and it now works perfect.

Thanks!


Edited by Co (2004-01-07 10:52 AM)
_________________________
Co