Microsoft KB Archive/71247

From BetaArchive Wiki
Knowledge Base


Semicolon, Equal Sign As Arguments in Batch File

Article ID: 71247

Article Last Modified on 5/12/2003



APPLIES TO

  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 4.01 Standard Edition
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition



This article was previously published under Q71247

SUMMARY

When a semicolon (;) or equal sign (=) is used as a command line argument in a batch file, it is treated as a blank space.

MORE INFORMATION

For example, in the following batch file, TEST.BAT,

   echo %1 %2 %3
                

the command line and resulting output appear as follows:

   Command Line       Output
   ------------       ------

   test a=b           a b
   test a;b           a b
   test ;ab           ab
   test =             ECHO is on (parsed as test)
   test ;             ECHO is on
                

For more information, query on the following words:

equal and sign and characters and batch



Additional query words: 6.22 4.0 4.00 4.01 4.01a 5.00 5.00a 6.00 6.20

Keywords: KB71247