It is a scheduled task that I have programmed. Lately it just freezes when it is going to start.
Is the hard drive nearly full?
Defragmenting requires a certain amount of free space to swap files around in.
So how do I free up some space
Um, er, delete something ? And empty the trash if it’s that sort of file system.