This prevents spurious dialog boxes appearing, such as "No disk is in the drive" if the application attempts to access an invalid drive.
This prevents spurious dialog boxes appearing, such as "No disk is in the drive" if the application attempts to access an invalid drive.