MS-DOS LABEL Command May Truncate Spaces (79892)



The information in this article applies to:
    Microsoft MS-DOS operating system 5.0
    Microsoft MS-DOS operating system 5.0a
    Microsoft MS-DOS operating system 6.0
    Microsoft MS-DOS operating system 6.2
    Microsoft MS-DOS operating system 6.21
    Microsoft MS-DOS operating system 6.22

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 "Microsoft MS-DOS User's Guide and Reference," 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 "MS-DOS User's Guide and Reference" 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


Modification Type: Major Last Reviewed: 5/12/2003
Keywords: KB79892