Article ID: 63071 - View products that this article applies to.
This article was previously published under Q63071
This article has been archived. It is offered "as is" and will no longer be updated.
MS-DOS recognizes only the first eight characters of a batch file label; subsequent characters are ignored.
NOTE: This eight-character limitation also applies to the %config% variable passed to the AUTOEXEC.BAT file in MS-DOS versions 6.0 or later when you use multi-boot configurations.
For example, the labels LATESTCHANGE and LATESTCHANGES are identical to MS- DOS. The line "GOTO LATESTCHANGE" (without the quotation marks) transfers to the first label in the file that has same first eight characters as LATESTCHANGE.
The following examples illustrate this limitation.
Example 1The following example
goto latestchdisplays the following
tworather than displaying the following:
Example 2The following example
:latestchdisplays the following until CTRL+C is pressed, terminating the batch file:
Article ID: 63071 - Last Review: October 26, 2013 - Revision: 3.0
Contact us for more help
Connect with Answer Desk for expert help.