FIX: Adding File Causes Error if Name Contains a Space

Last reviewed: August 25, 1997
Article ID: Q156454
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, versions 4.0, 4.0a

SYMPTOMS

When you add a file to Microsoft Visual SourceSafe using the SourceSafe Explorer, you may receive the error message:

   "<filename>
   the above file name is invalid

where <filename> represents the first section of the name of the file you are attempting to add. For example, if the filename is "SOURCESAFE RULES," the error will read:

   "SOURCESAFE
   the above file name is invalid

You will receive this message if the following conditions are met:
  • You are running Microsoft Windows NT version 4.0.
  • The name of the file you are adding contains one or more spaces.

WORKAROUND

Choosing the OK Command button from the error dialog box will add the file to Visual SourceSafe. To avoid the error message altogether, you may use the Visual SourceSafe Command line:

  SS ADD <filename>

NOTE: Make sure that the current project is the one to which you want to add the file before using the Command line.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual SourceSafe version 5.0.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create or locate a file whose name contains one or more spaces.

  2. Open or switch to Microsoft Visual SourceSafe 4.0 running on Microsoft Windows NT 4.0.

  3. From the File menu, choose Add Files.

  4. Go to the drive and directory where the file described in step 1 is located.

  5. Attempt to add the file and note that the error message will appear. Choose OK from the dialog box and note that the file is added successfully.


Additional query words: long filename
Keywords : fixlist5.0 ssafe ssui fixlist5.00
Version : 4.0 4.0a
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix


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.

Last reviewed: August 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.