PRB: Long File Names are Converted to Short by Association

ID: Q150706


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
  • Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0
  • Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 16-bit and 32-bit, for Windows, version 4.0
  • Microsoft Windows 95, Windows 98


SYMPTOMS

Opening a Visual Basic project with a long file name, using any method other than starting Visual Basic and then opening the project, results in Visual Basic opening the project using the short file name, causing the short file name to appear on the title bar of the project.

If this project is under SourceSafe control, certain operations can produce the error:

"file or project not found"


STATUS

This behavior is by design.


RESOLUTION

Perform the following steps to resolve the problem:

  1. Start Windows Explorer. From the View menu, select Options. In Windows 98, select Folder Options.


  2. Click the File Types tab. Double-click Visual Basic Project in the Registered file types list box. The Edit File Type window appears.


  3. Double-click Open in the Action list box. The Editing action for type: Visual Basic Project dialog box appears.


  4. In the Application used to perform action: text box, put quotation marks (" ") around the Command line for Visual Basic. The text should look like the following:
    
          "C:\ProgramFiles\Microsoft Visual Basic\vb32.exe" "%1"
     


  5. Click OK, and close all windows and dialog boxes.


Now when you open a Visual Basic project with a long file name, the long file name appears on the title bar of the project.

Additional query words: win95 win98 kbVBp400 kbVBp500 kbVBp kbDSupport kbVBp600 kbCtrl
kbdsd kbSSafe ssvb kbWin98OS

Keywords : kbGrpVB
Version :
Platform : NT WINDOWS
Issue type : kbprb


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.