Microsoft KB Archive/79892

= MS-DOS LABEL Command May Truncate Spaces =

Article ID: 79892

Article Last Modified on 5/12/2003

-

APPLIES TO


 * 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 Q79892



SYMPTOMS
The MS-DOS LABEL command may truncate consecutive spaces within a label name.



STATUS
Microsoft has confirmed this to be a problem with Microsoft MS-DOS versions 5.x, 6.0, 6.2, and 6.21. We are researching this problem and will post new information here as it becomes available.



MORE INFORMATION
Using the syntax provided in the example on page 517 of the version 5.0 &quot;Microsoft MS-DOS User's Guide and Reference,&quot; consecutive spaces may be interpreted as a single space. The example was intended for labels without consecutive spaces.

The syntax for the LABEL command in the version 5.0 &quot;MS-DOS User's Guide and Reference&quot; shows the following:

label a:sales1991

Using the above syntax for labels with consecutive spaces may truncate spaces to a single space.



WORKAROUND
To avoid interpreting consecutive spaces as a single space, the following format should be used with the LABEL command:

With a formatted disk in drive A, enter the following at the command prompt:

label a:

The following is displayed:

Volume in drive D has no label

Volume label (11 characters, ENTER for none)? TEST 1

The volume label is correctly recorded as:

test 1

Additional query words: 6.22 5.00 5.00a 6.00 6.20 label.exe

Keywords: KB79892

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.