Microsoft KB Archive/40547

From BetaArchive Wiki
Knowledge Base

BC.EXE Will Not Compile Files Named USER.*

Article ID: 40547

Article Last Modified on 8/16/2005


  • Microsoft Visual Basic for MS-DOS
  • Microsoft QuickBasic 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBasic 4.5 for MS-DOS
  • Microsoft BASIC Compiler 6.0
  • Microsoft BASIC Compiler 6.0b
  • Microsoft BASIC Professional Development System 7.0

This article was previously published under Q40547


The Basic compiler (BC.EXE) will not compile any source file with a name of USER.* (e.g. USER.BAS, USER.TXT, etc.). Instead, it will take input from the console and report any errors on each line as they are entered. BC.EXE will create an object file only if a name other than USER.OBJ is specified.

The filename USER is a special filename reserved for compiling files that are entered directly from the console instead of from a file. Thus, if you have a file that is named USER.BAS, BC.EXE will not compile it.

To work around this limitation, rename your Basic file to something other than USER.BAS.

Additional query words: VBmsdos QuickBas BasicCom 1.00 4.00 4.00b 4.50 6.00 6.00b 7.00

Keywords: KB40547