by James E. Toebes (2 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
Eliminate short name conversion in the VB IDE.
Ever noticed that if you open a vb project containing a long file name from explorer by double clicking it shortens the filename to 'PROJEC~1' instead of 'Project Number 1'? But if you open the same project while inside VB (Project open dialog) it uses the long name.
I experimented and found a quick fix.
1. From Explorer choose View => Folder Options
2. Select the tab 'File Types'
3. Scroll through the list and highlight 'Visual Basic Project' then press the Edit button.
4. Highlight 'Open' then press the Edit button.
5. Change the 'Application used to preform this action
from C:\Program Files\DevStudio\VB\vb5.exe "%1"
to "C:\Program Files\DevStudio\VB\vb5.exe" "%1"
NOTE: the only change is adding double quotes around the VB5.exe specification.
6. Save the changes.
You can repeat this for the other items in both the actions list and the registered applications list.
If any one can give me a reasonable explanation as to why this works, I would sure appreciate it. Interesting that if you try to make changes without adding the quotes, Your told that it is invalid and cannot save it.