Create new scheduled task.
Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks. Then Add Scheduled Task.
Follow the instructions in the Add Scheduled Task wizard.
You'll probably need first to browse for executable.
the defrag.exe is in C:\Windows\System32.
Then modify the command to:
"C:\Windows\System32\defrag.exe C:"
This will defrag drive c:
And then there are some defragging utilities which have scheduler application with them. E.g. Raxco's Perfect Disk, etc.
<edit>
How to use the Windows Task Scheduler: (w/ screenshots)
http://www.iopus.com/guides/winscheduler.htm
</edit>