07-29-2022, 06:24 PM
Yep, _DIREXISTS was a much appreciated QB64 addition.
I use _FILEEXISTS extensively before performing most file open routines. It really saves on building error trapping routine.
It is interesting to note _DIREXISTS was not made to detect inactive drives though. You need my old error trapping routine or Rhos' Windows API routine for that, although the API routine does not seem to indicate activity / inactivity (Device not read) as does the error trapping method.
Fun stuff!
Pete
I use _FILEEXISTS extensively before performing most file open routines. It really saves on building error trapping routine.
It is interesting to note _DIREXISTS was not made to detect inactive drives though. You need my old error trapping routine or Rhos' Windows API routine for that, although the API routine does not seem to indicate activity / inactivity (Device not read) as does the error trapping method.
Fun stuff!
Pete