Is there any defrag tool which defrags every fragmented file at boot time? So far, all of the tools I have seen only defragment the page file, MFT and system files at boot time.
I don’t know about defragging utilities with a built-in option to run on boot (Keltari offered one suggestion), but I would strongly recommend against automatically defragging on boot. When Windows boots, there is a lot of disk access as it loads the system, the user profile, the autorun programs, etc. If one of these programs is thrashing the hard-drive to defrag it, the whole system will get bogged down to a horrible degree (unless you are using an SSD in which case you shouldn’t be defragging at all).
A better option is to have an auto-defrag run at a later point after the boot process has finished.
Of course you will have to check the help-files of whatever defrag tool you like to see what command-line switches it uses (though usually running the executable with the drive-letter is usually sufficient, e.g.,
Figure 1: Autorunning Windows’
Figure 2: PageDefrag’s options
Figure 3: NTREGOPT compacting a registry hive
If you must perform an actual defrag at boot, boot-time defragging is an actual selling point of UltimateDefrag.