Link to home
Start Free TrialLog in
Avatar of clarson
clarsonFlag for United States of America

asked on

Long Filename Problem with FileListBox

I am using a FileListBox in an app and I am having a problem with long filenames on a Novell Network.  Sometimes the FileListBox will not see the long filename on the network server but will display the short filename instead.  Windows Explorer will see the file just fine.  Not completley sure if this is a netware issue or a VB issue.  I am leaning toward a VB issue because it is the only thing I am having the problem with.  Every other app can see the long filename with no problem.  I am using VB 6.0 Service Pack 2.0
Avatar of nutwiss
nutwiss
Flag of United Kingdom of Great Britain and Northern Ireland image

I believe it is a NetWare issue.
ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AnswerTheMan
AnswerTheMan

hmmm... whenever i need to display DIRs and FILES in my apps - i use an OCX that imitates exactly WindowsExplorer, instaed of the ugly fileListBox.
if you want that OCX - paste your email and i'll be sending it within 24 hours or so.
Avatar of clarson

ASKER

AnswerTheMan,
My email is clarson@burnsmcd.com
Is this OCX freeware?  If so I would be interested in looking at it.
Thanks

Waty,
I thought about that, but it doesn't prove to be the best solution for this application.
Thanks for the input.
yeah. it's free and i've also distributed it succesfuly to other machins.
just sent it.
>I am using VB 6.0 Service Pack 2.0

I'd recommend sp3 ASAP. (not for this prob, but just because there are a few issues with sp2)
Avatar of clarson

ASKER

AnswerTheMan,
well, I already had that one, but thanks for sending it anyhow.
so, why are you using the fileListBox ?
I'm sure there are API functions to convert long path names into shor path names and vice versa...

If i come accross the functions on MSDN i will post the page URLS

HOWTO: Get a Short Filename from a Long Filename
http://support.microsoft.com/support/kb/articles/Q175/5/12.ASP

HOWTO: Get a Long Filename from a Short Filename
http://support.microsoft.com/support/kb/articles/Q154/8/22.ASP
Avatar of clarson

ASKER

Waty already suggested doing that, but it will not work for the application.  The problem is the user is looking for one filename and cannot find it.  The short filename on Netware does not consist of a file~1.ext like on 95 or NT so it makes things confusing because the user does know which file is the one they want.  142e00002A-Layout1.plt might have 142e0002.plt as a short filename.  If they have a file name 142e0001.plt in the directory the filelistbox would show 142e0001.plt and 142e0002.plt.  When you have 50+ files in a directory that look this way it gets very difficult to find the one you are looking for.
Avatar of clarson

ASKER

A filelistbox was being used because it is an older app that has been updated for several years.  It looks like it is time to rewrite it.
Avatar of clarson

ASKER

I have decided to rewrite with an explorer like interface.  The question I have is what to I do with my question.  It was never answered and I have given up on the filelistbox issue now.  Any suggestions?
Ask another question here, and get us to answer that one ? :)

Or change the points to 0, and then accept an answer
Avatar of clarson

ASKER

Since my question is has not been answered and I have given up on the FileListBox i am going to decrease the points and accept one of the comments as the answer.
Avatar of clarson

ASKER

Well I guess it won't let me lower the points. So much for that.
Avatar of clarson

ASKER

Well my question was never answered, but since waty posted some code that I may find usefull someday I am going to give him the points.