copy file to floppy disk

  • Thread starter Thread starter cfyam
  • Start date Start date
C

cfyam

When my app copy some files to floppy disk, how can to determine the time to
show the message to inform user to take the disk off?
 
I am not sure you can reliably determine when it's about time, well, unless
you are interfacing to the low-level device driver - and here's why. While
you can reliably determine that the file has been copied by the system (it's
the time instance the Copy method returns), it does not necessarily mean the
data have been actually written to the disk (caching issues step in), and
that the drive is ready to eject the disk. You probably know you shouldn't
eject the disk while the LED on the drive is turned on - and I am in doubt
it is easily possible to determine the state of the LED programmatically.
 
Back
Top