The controlling routine for the daily operation is NOT a part of defrag (I believe).
Sounds as if, somehow, you have invoked a utility in W98 that I can't recall the name of! It is designed to routinely run such stuff and you MAY find it by looking for a likely name in Control Panel.
I will stop digging this hole now and wait for someone who remembers the name of the blasted thing.