KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q79892: MS-DOS LABEL Command May Truncate Spaces

Article: Q79892
Product(s): Microsoft Disk Operating System
Version(s): MS-DOS:5.x,6.0,6.2,6.21,6.22
Operating System(s): 
Keyword(s): 
Last Modified: 17-DEC-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft MS-DOS operating system versions 5.0, 5.0a, 6.0, 6.2, 6.21, 6.22 
-------------------------------------------------------------------------------

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: " (without the quotation marks)

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          :  
Technology        : kbMSDOSSearch kbMSDOS621 kbMSDOS622 kbMSDOS620 kbMSDOS600 kbMSDOS500 kbMSDOS500a
Version           : MS-DOS:5.x,6.0,6.2,6.21,6.22

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.