title: Detect disk activity in Delphi
body: <p>I'm using Delphi 2007.</p>
  
  <p>I am copying files to a remote drive. When the copying ends, I shutdown/standby the machine. It can happen that some files don't get copied from buffer to disk, and the remote disk gets disconnected, so the backup is not completed. I need to detect disk activity on that disk to properly be able to take the close action on the machine.</p>
  
  <p>Is there a way to detect disk activity in this scenario?</p>