I would expect in an error situation like "file access denied" that a message box will be shown with the following options.
I agree, a message box would be better for that situation. The problem however is that I have gone to great trouble to make JkDefrag completely automatic, because that is what I needed for myself. A popup box would negate that. Also, it is not always possible to differentiate between situations. For example, it is not always an error if a disk cannot be accessed, perhaps it's a floppy drive. In the future I am planning to make an interactive version of JkDefrag, with all the buttons and facilities that can be found in other defraggers, and then popup messages will be in order. But for now I want to keep JkDefrag completely automatic.
I have checked on the security tab for file properties in Windows Explorer.
Windows has separate security properties for disks and for files. It is possible to have access to the files on a disk, but not to the disk itself.