You are currently offline, waiting for your internet to reconnect

Semicolon, Equal Sign As Arguments in Batch File

This article was previously published under Q71247
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.
SUMMARY
When a semicolon (;) or equal sign (=) is used as a command line argumentin 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
6.22 4.0 4.00 4.01 4.01a 5.00 5.00a 6.00 6.20
Properties

Article ID: 71247 - Last Review: 05/12/2003 20:57:35 - 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
  • KB71247
Feedback