Semicolon, Equal Sign As Arguments in Batch File

Article translations Article translations
Article ID: 71247 - View products that this article applies to.
This article was previously published under Q71247
Expand all | Collapse all


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


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


Article ID: 71247 - Last Review: May 12, 2003 - Revision: 2.0
  • 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
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from