I am using Qbasic to setup & install a DOS program. One of the items is an 'Input' for a Drive letter. In testing, if an invalid drive is input, a screen return of 'Invalid drive specified' shows on the screen , but the program does not stop with an error. How can I trap or test the output ?
Code::
INPUT " Drive letter for installation " ; dr$
SHELL "" + dr$ + ":" .. (change to drive selected )
Need code to test for 'Invalide drive specified'
This does not react to ' ON ERROR GOTO '
It is like a soft error, and the program continues to run.
Thanks, T. Roehl MPLS. MN