Semicolon, Equal Sign As Arguments in Batch File
This article was previously published under Q71247
This article has been archived. It is offered "as is" and will no longer be updated.
When a semicolon (;) or equal sign (=) is used as a command line argumentin a batch file, it is treated as a blank space.
For example, in the following batch file, TEST.BAT,
the command line and resulting output appear as follows:
echo %1 %2 %3
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 onFor 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
Article ID: 71247 - Last Review: 12/04/2015 09:07:12 - 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
- kbnosurvey kbarchive KB71247