RUN "PROG.EXE" Fails in QB.EXE Editor; Use RUN "PROG" Instead (37346)
The information in this article applies to:
- Microsoft QuickBASIC 4.0, when used with:
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft QuickBASIC 4.0b, when used with:
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft QuickBASIC 4.5, when used with:
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- QBX.EXE environment in Microsoft Basic Professional Development System (PDS) 7.0, when used with:
- the operating system: MS-DOS
This article was previously published under Q37346 SUMMARY
If you want to RUN a QuickBasic program, such as PROG.BAS, from within
the environment, you must type RUN "PROG" instead of RUN "PROG.EXE".
RUN "PROG" successfully loads and executes the source file PROG.BAS.
RUN "PROG.EXE" will fail in the editor (as designed) but will succeed
in an .EXE running outside the editor.
You cannot use the RUN statement to invoke a non-QuickBasic
application from within the QB.EXE editor environment; however, you
can use the RUN statement from a compiled .EXE program running outside
the editor.
To invoke a non-QuickBasic application from within the QB.EXE editor,
you can SHELL to it or exit QuickBasic before invoking it.
QB.EXE Version 4.50 fails to give you an immediate error message if
you RUN an executable file from inside the editing environment. QB.EXE
Version 4.50 attempts to load and execute the .EXE or .COM program as
a text module, which will fail. QBX.EXE which comes with Microsoft
Basic PDS Version 7.00 behaves the same as QB.EXE 4.50. It loads the
.EXE or .COM file and attempts to execute it as Basic source code. This
is not considered to be a problem with those products but is a result
of incorrect use of the RUN statement in the environment.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB37346 |
---|
|