I think I’ve mentioned before that I am a big fan of “portable” programs. By this, I mean programs that you do not need to install. You can just run the executable from anywhere (including a USB drive), and it will run. I came across a defrag utility recently that doesn’t need to be installed. It is called JkDefrag:
JkDefrag is based on the standard defragmentation API by Microsoft, a system library that is included in Windows 2000, 2003, XP, and Vista. Most defragmenters are based on this API, including commercial defragmenters. JkDefrag is therefore very solid and there is no risk of losing data. You can stop the program at any time, it will finish the current file in the background.
I’ve tried it out. It isn’t very attractive looking, and there are no options within the program itself, but it does what it is supposed to do. You just run the program and it automatically defrags all of your hard disks. This would be perfect for a scheduled task. There are options that can be chosen from the command-line (or in a shortcut).