I need to check if a file exists in order to make sure that a user has put a disc in their cd-rom drive. At the moment it seems I need to use an error trap to stop the program exiting with a run-time error (using the 'dir(filename)<>""' method) in the case that the user doesn't have the cd in the drive. This isn't satisfactory because I need to be able to take account of the possibility of multiple drives (the cd might be in drive e or f for example, just because the program doesn't find it in the first drive it checks, doesn't mean it should assume it isn't there).
I can't seem to find a simple way of saying "if there is a cd in any drive that has this file on it continue, if not give an error and exit cleanly". If anyone knows a good way of doing this, I'd be much obliged.
I can't seem to find a simple way of saying "if there is a cd in any drive that has this file on it continue, if not give an error and exit cleanly". If anyone knows a good way of doing this, I'd be much obliged.