Microsoft KB Archive/62774

= Using PC-DOS 3.00 and QBX.EXE Will Give SHELL Problems =

Article ID: 62774

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q62774



SYMPTOMS
When using QuickBasic Extended (QBX.EXE) version 7.00 or 7.10 under PC-DOS version 3.00, if you first generate a PC-DOS &quot;Bad command or file name&quot; error on a SHELL statement, then any subsequent uses of the SHELL statement with any parameter will result in the &quot;Bad command or file name&quot; error until you restart QBX.EXE. To work around this problem, you can either use QuickBasic version 4.50, or upgrade to either MS-DOS or a newer version of PC-DOS, or compile the program and run it outside of the environment with the near strings option (without /Fs).



STATUS
Microsoft has confirmed this to be a bug in Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 under PC-DOS 3.00. We are researching this problem and will post new information here as it becomes available.

This problem does not occur in Microsoft QuickBasic versions 4.00, 4.00b, or 4.50, or in Microsoft Basic Compiler versions 6.00 or 6.00b under PC-DOS.

The following code example demonstrates the problem:

Code Example
SHELL &quot;Errorxyz&quot;     ' This will cause the first &quot;Bad command or                         ' file name&quot; error. SHELL &quot;CLS&quot;          ' This is supposed to work but it gives a &quot;bad

' command or file name&quot; error

Additional query words: BasicCom SR# S900522-12 buglist7.00 buglist7.10

Keywords: KB62774

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.